Last active
May 22, 2024 11:06
-
-
Save mikesigs/f2ab55248f720ddcf4a9 to your computer and use it in GitHub Desktop.
Pushbullet Reboot Notifier
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: Broadcast a "Reboot complete" message to all PushBullet devices after a machine finishes rebooting | |
:: This is helpful when you restart a remote machine and want to know when you can reconnect | |
:: STEP 1: Get a Pushbullet API Access Token from your account page - https://www.pushbullet.com/#settings/account | |
set token=YOUR TOKEN HERE | |
:: STEP 2: Save this script somewhere on the target PC | |
:: STEP 3: Follow these instructions to make it a startup script - https://technet.microsoft.com/en-ca/library/cc770556.aspx | |
:: STEP 4: Test the script by simply running it. If you get the notification, then try rebooting to see if it works. | |
:: STEP 5: ??? | |
:: STEP 6: Profit! | |
set body=\"%COMPUTERNAME% has finished rebooting\" | |
set title=\"Reboot complete\" | |
curl --header "Access-Token: %token%"^ | |
--header "Content-Type: application/json"^ | |
--data-binary "{\"body\":%body%,\"title\":%title%,\"type\":\"note\"}" --request POST https://api.pushbullet.com/v2/pushes | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment