Skip to content

Instantly share code, notes, and snippets.

@mikesigs
Last active March 17, 2017 21:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikesigs/f2ab55248f720ddcf4a9 to your computer and use it in GitHub Desktop.
Save mikesigs/f2ab55248f720ddcf4a9 to your computer and use it in GitHub Desktop.
Pushbullet Reboot Notifier
@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