Skip to content

Instantly share code, notes, and snippets.

@JimmyAppelt
Last active February 18, 2024 17:48
Show Gist options
  • Save JimmyAppelt/1b85b518c7fd44b6742fe2aafa17b646 to your computer and use it in GitHub Desktop.
Save JimmyAppelt/1b85b518c7fd44b6742fe2aafa17b646 to your computer and use it in GitHub Desktop.
Disable Automatic Restarts in Windows 10 Home Anniversary Update

Win 10 Pro:

  • Press win+R then type gpedit.msc and press enter
  • This will open the group policy editor. Browse through the 'tree' to the following entry: Computer Configuration > Administrative Templates > Windows Components > Windows Update.
  • Look on the right panel and search for the option named No auto-restart with logged on users for scheduled automatic updates installations.
  • Double-click on it, then change the radio button in the popup window that will appear from not configured to enabled and click OK.
  • To make the system immediately apply the changes you just made, press win+R again and issue the gpupdate /force command

Win 10 Pro (alternative method) and Home:

  • Press win+R; type regedit and press enter.
  • Browse to the following registry entry: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
  • If you do not have a WindowsUpdate and/or AU entry, you need to create them. Follow the 'source' link below for add'l info on how to do this.
  • Inside the AU key, create a new 32-bit DWORD called NoAutoRebootWithLoggedOnUsers, then double-click on it and set its hex value to 1.
  • You'll have to reboot for the change to be applied.

Another alternative - home or pro

If for whatever reason the approach above doesn't work, you can get around automatic reboots by changing your windows update settings so that you only download updates automatically and it requests approval before installing them. Once you approve installation you are at the mercy of when Windows reboots, but you have the ability to otherwise indefinitely delay it.

To change this setting:

  • Press win+R; type regedit and press enter.
  • Browse to the following registry entry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update
  • Change the value of that key to a '3' (which configures windows update to download updates automatically but require user confirmation before installing them).
@brutestack
Copy link

Last method description missed the key name one needs to set to '3'. Its AUOptions.
You can do it also from command line:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 3 /f

One more note: setting `AUOptions' to 1 disables Automatic Updates completely

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