opus-nt/tweaks/ten/post-setup script - disable update reboot/wim/Windows/Setup/Scripts/opus/disable update reboot.cmd
Fierelier f1430729ee [experimental] re-added tweak: post-setup script - disable update reboot
this disables the scheduled task, which force-restarts your PC randomly
after an update.
2020-02-23 10:29:20 +01:00

4 lines
255 B
Batchfile

schtasks /change /tn "\Microsoft\Windows\UpdateOrchestrator\Reboot" /disable >nul
echo. >"%windir%\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Reboot"
echo y| cacls "%windir%\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Reboot" /D "SYSTEM"