Shutdown Marcos

Scripts to be used with marco keys or Stream Decks

The Shutdown Macros library is a collection of executable Batch scripts that automatically schedule a shutdown (or restart) of your machine.

For example, if you want to go to bed but your PC is still going to be downloading something for 90 minutes, you can quickly set a 2 hour shutdown timer so that the machine will auto shutoff after the download would have completed.

There is also an abort script included if you want to have the option to cancel any pending shutdown.

These can be used with any software that can automatically launch applications, like keyboard macro drivers or an Elgato Stream Deck. They can also be run directly by double-clicking the files.

Download Scripts v1.2

Installation Steps

Using Stream Deck as an example

  1. Download the scripts with the link above and extract them somewhere on your PC.
  2. Drag a .bat file onto an empty Stream Deck button slot.
  3. Set the button text (i.e. "1 Hr").
  4. Set the button background with the included images.
  5. Then just smack the button!

View Code on GitHub

Changelog

Added a shutdown 'now' option. Added restart options for all 5 time intervals. Removed the PowerShell versions.

Convert to Bat files instead. These are directly usable with StreamDeck's Run Action, avoiding the need to use the WindowsScriptDeck plugin.

Init the project as a collection of PowerShell scripts that schedule shutdowns with a message box confirmation.