Skip to content

Commit

Permalink
optimize.bat: Stop Windows update auto reboots
Browse files Browse the repository at this point in the history
Newer versions of Windows 10 stepped up how annoying it wants to be.

This is not my own technique (it's popular):
https://lazyadmin.nl/it/how-to-stop-automatic-restart-win-10-after-installing-updates/

I made sure this only works to stop the automatic shutdown and that
updates still work otherwise. Windows will still forcefully apply
updates whenever *you* choose to shutdown/boot which I think is
acceptable.
  • Loading branch information
ElliotKillick committed Jun 12, 2023
1 parent f914ecc commit 2367461
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions post/optimize.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOpti

echo Enabling never automatically reboot for updates with logged on users...
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f
rem On newer versions of Windows 10, Microsoft intentionally breaks this feature to force users into automatically rebooting for updates at any time
rem To disable automatic rebooting for updates anyway, simply make MusNotification.exe unable to start (this method is popular)
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\MusNotification.exe" /v Debugger /t REG_SZ /d "cmd.exe"

rem echo Adjusting visual effects for best performance...
rem Severely reduces Windows 7 appearance but on Windows 10 it's acceptable
Expand Down

0 comments on commit 2367461

Please sign in to comment.