Skip to content

Instantly share code, notes, and snippets.

@twlee79
Created September 22, 2018 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twlee79/0e4b586f8df0f64c1265f13ec5bd0b4f to your computer and use it in GitHub Desktop.
Save twlee79/0e4b586f8df0f64c1265f13ec5bd0b4f to your computer and use it in GitHub Desktop.
@echo Creates a scheduled task to run the ChangeActiveHours.bat file to prevent auto-restarts in Win10
@echo Usage: CreateTaskChangeActiveHours.bat /ru "ComputerName\Username" /rp
@schtasks /create /xml "ChangeActiveHours.xml" /tn ChangeActiveHours %1 %2 %3 %4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment