5
3
I wish to somehow disable automatic reboots of Windows 10, as this disrupts long-running commands and I wish to do this 'programatically'; e.g. via a script. For me, it will be too cumbersome to set this option via the UI (many machines and frequent re-installations of Windows).
I do not necessarily wish to disable Windows Update or automatic downloads of updates. I just don't want the machine to reboot without my approval.
How can this be done?
AUOptions regedit key is not the answer
Most Google search results seems to indicate that setting the regedit key HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU\AUOptions
to 3
, followed by a reboot, would make Windows Update set its dropdown menu option to "Notify to schedule restart" instead of the default "Automatic (recommended)", and that this would stop Windows from rebooting automatically.
However, neither of the following commands (+ reboot) will yield that result on my copy of Windows 10 Pro (64-bit), Version 1511 OS Build 10586.218:
reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /f /v "AUOptions" /t REG_SZ /d "00000003"
reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /f /v "AUOptions" /t REG_DWORD /d "3"
Instead, both of these commands will leave the setting at "Automatic (recommended)" which will cause Windows to keep download updates automatically, install them and reboot if necessary.
You can also change this dropdown manually, reboot and check regedit and you'll see that the AUOptions
key hasn't changed, indicating that this is not the way to set this option on Windows 10 Pro.
This is not a duplicate of "How to disable automatic reboots in Windows 10?"
Please note, this is not a duplicate of How to disable automatic reboots in Windows 10? as the solution posted in the accepted answer does not work in Windows 10 Professional:
- Press Win + R and type regedit then hit Enter
- Navigate to HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU (you may need to create the later Keys manually)
- Create a new DWORD value called AUOptions and enter a value of either 2 or 3.
2 = Notify before download
3 = Automatically download and notify of installation
- Restart PC
- Check for updates
- Inspect Advanced Settings
I gave up on all the Microsoft nonsense on how to control W10 Updates and reboots, I use this tool now...http://superuser.com/a/983535 Run it when I see fit and have the time to reboot.
– Moab – 2016-05-02T23:18:59.1831
Possible duplicate of Make Windows 10 stop installing driver software automatically
– Pimp Juice IT – 2017-05-12T03:43:06.243This sounds like something that could be done with a Group Policy. Have you tried doing that? It sounds like you are on a domain, so this is even better than using a script. – InterLinked – 2018-07-15T19:10:05.803