I have a domain controller with Windows Server 2012 on it. After updates, the server does not reboot immediately. However if I remote into the server I will be presented with a countdown for a reboot. The only options are to restart now or to close the notification. However the countdown still continues and the server eventually reboots without my permission. How can I stop this from occurring?
There is a Local Group Policies you can set to disable the automatic restarts. This should only be done on Windows Servers assuming a sysadmin is going to RDP into the server on a regular schedule and install updates and restart the server (see Patch Tuesday).
- Press Windows Key+R to open the run prompt.
- Type "gpedit.msc" and press enter.
- In the "Local Group Policy Editor", navigate to Computer Configuration > Administrative Templates > Windows Components > Windows Update.
- Enable the "Configure Automatic Updates" policy and set it to "2".
- Enable the "No auto-restart with logged on users for scheduled automatic updates installations" policy.
2Best solution so far!– digz6666Nov 6, 2015 at 3:23
@digz6666 Glad it helped!– ChaoixNov 9, 2015 at 19:49
Thanks, so many unuseful sites. I wish i had found this as first result...– simonJun 13, 2018 at 9:23
I'm in the middle of that countdown. just applied the steps as described above. will that gpedit need a reboot to take effect? I will know in 12 minutes.– dlatikaySep 20, 2018 at 12:40
1yes it does. adjusting the setting does not abort a running count-down. this is like defusing a timebomb. While it was counting down from four minutes, I hacked in the suggestion of @Zael in their last comment to OP, and it went away.– dlatikaySep 20, 2018 at 12:49
Finally Microsoft has produced a FIX for this behavior in an update rollup!
An update is available that lets you control how the Automatic Updates client applies updates in Windows 8 and Windows Server 2012. After you install this update, the "Configure Automatic Updates" policy setting will work again as it used to in previous Windows operating systems. Instead of installing updates during the daily maintenance cycle, Windows updates will be installed at the time and day that are scheduled in the "Configure automatic updates" policy setting.
1Good find, nice answer.– mfinniOct 9, 2013 at 16:08
3Can it be used to disable automatic reboots too? We've got a Windows Server that presents iSCSI shares to our VMs and it's "a bad thing" every time it automatically reboots out from underneath those dependent VMs. Aug 28, 2014 at 18:47
10It's 2015, my system is up to date, I still see no option under windows update settings titled "Don't start a countdown when I log in". This is an epic fail.– TriynkoMay 11, 2015 at 17:47
3This is a comlete shambles. I just logged onto a server with 20 users, and it tells me it WILL reboot in 13mins. Great. Thanks microsoft.– PatrickApr 29, 2016 at 0:46
1I'm still confused by the wording in Group Policy. What exactly do you have to configure so the server will only restart at 3am rather than randomly?– NickGJan 24, 2017 at 15:59
Disable the Windows Update service. Not in Service Manager - just stop it. The countdown is from the service, not Windows itself.
If you stop it - no more updates UNTIL the machine is manually restarted.
Same works with Server 2012.
net stop and then stop the service.
1That is a good way to prevent the reboot when it prompts me. I guess I stil have an underlying issue in that the reboot doesn't happen at 3AM when the updates happen but instead waits until I log in. I just don't understand why me logging in starts the countdown.– BryansixJan 9, 2013 at 19:08
Change it seems. I dont like it either. The 3am is a config Thing ;) My reboots happen on the Weekend.– TomTomJan 9, 2013 at 19:13
1this answer actually didn't work for me. stopped Windows Update service, and kept getting the countdown banners on the Server 2012. Jan 15, 2013 at 0:34
3If you stop the service, it may not be enough. Its possible the service automatically starts itself after 1 minute. It will do this a total of 2 times, depending on which version of windows you're using. In addition, there may be one or more processes running called
Windows Update. In a recent case I had to kill these processes and stop the service to stop the problem.– LPChipMar 6, 2015 at 12:41
2It uses Task Scheduler to restart the service and process if they are stopped. May 5, 2016 at 13:03
Stopping the service isn't enough, as it'll just start itself again. You have to disable the service until you are ready to restart the server.
Then to fix the issue, you'll need to add this registry value to ensure Windows restarts at the scheduled time, even if it is locked.
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v AlwaysAutoRebootAtScheduledTime /t REG_DWORD /d 1 /f
To stop the reboot temporarily, Disable the Windows Update and Windows Module Installer services. Turn them back on at night so the reboot can happen.
You could use Powershell for installing updates. Do an internet search for the PSWindowsUpate module and download it. Then run the command Get-WUInstall. There's a switch that lets you ignore the request for a reboot. I've been using it on all of my 2012 servers, and I like it a lot better than using the GUI.
The switch referenced is
ipmo PSWindowsUpdate; Get-WUInstall -AcceptAll -IgnoreReboot– spuderSep 6, 2016 at 22:53
If your updates come through WSUS, you can determine which updates require a mandatory reboot of the machine and plan them during a maintenance window. Otherwise disable Windows Update service as suggested above.
NET STOP WUAUSERVas an administrator, and then ensure it's (Windows Update) disabled in the services.msc and then kill Windows Update in the Task Manager as well. That seems to have finally stopped the countdown for the time being.