Skip to content

Instantly share code, notes, and snippets.

@webvictim
Created October 24, 2015 12:52
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save webvictim/b123bea9a62a716b1490 to your computer and use it in GitHub Desktop.
Save webvictim/b123bea9a62a716b1490 to your computer and use it in GitHub Desktop.
@echo off
SET logfile="wu_reboot_log.txt"
echo %date% %time% >> %logfile%
schtasks /change /disable /tn "\Microsoft\Windows\UpdateOrchestrator\Reboot" >> %logfile%
echo. >> %logfile%
@chid
Copy link

chid commented Aug 31, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment