diff --git a/docs/tweaks.md b/docs/tweaks.md index eed6141..5e23021 100644 --- a/docs/tweaks.md +++ b/docs/tweaks.md @@ -31,7 +31,7 @@ i do not guarantee that that all of the reversals are accurate across different | ✔ | [disable fast startup](../tweaks/ten/disable fast startup) | when using fast startup, your computer never properly shuts down, but rather hibernates. this can leave you with an unstable system after a while, if you do not restart. see below for more info on hibernation and another reason as to why this is disabled. | | ✔ | [disable hibernation](../tweaks/longhorn-series/disable hibernation) | hibernation locks down your file system while windows is hibernating or shut down (if fast startup is enabled). editing the file-system outside of windows while this is the case, perhaps for recovery purposes, can likely corrupt your data. | | ⚠️ | [disable low battery hibernation while charging](../tweaks/longhorn-series/disable low battery hibernation while charging) | fixes the annoying behavior where windows will hibernate randomly while the device is charging. this can happen especially on old/dead batteries. if you are using a weak charger, you may want to exclude this tweak. | -| ❌ | ~~post-setup script - disable update reboot~~ | this disables the scheduled task, which force-restarts your PC randomly after an update. pending re-implementation. | +| ❌ | [post-setup script - disable update reboot](../tweaks/ten/post-setup script - disable update reboot) | this disables the scheduled task, which force-restarts your PC randomly after an update. |
diff --git a/tweaks/ten/post-setup script - disable update reboot/wim/Windows/Setup/Scripts/opus/disable update reboot.cmd b/tweaks/ten/post-setup script - disable update reboot/wim/Windows/Setup/Scripts/opus/disable update reboot.cmd new file mode 100644 index 0000000..75b8e73 --- /dev/null +++ b/tweaks/ten/post-setup script - disable update reboot/wim/Windows/Setup/Scripts/opus/disable update reboot.cmd @@ -0,0 +1,3 @@ +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"