Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
1  
Are you installing the updates or is automatic updates on? –  Patrick Jan 9 '13 at 17:16
    
Its complicated. Updates are installed automatically but which updates get pushed is managed by an RMM tool called N-Able. –  Bryansix Jan 9 '13 at 18:08
1  
I'll add that updates are scheduled for 3AM but this message showed up at 9AM when I logged in. –  Bryansix Jan 9 '13 at 18:46
    
Could it be that you or another admin keeps a remote desktop session running on the server? Not sure if 2012 defaults will prevent reboot at 3am if a session is "logged in and disconnected". GPO can control this behavior AFAIK. –  Bret Fisher Jan 14 '13 at 23:50
1  
Same here. Group policy is for overnight reboots, but Server 2012 decided to do it right in the middle of our production time! Argh! –  Brian Knoblauch Jun 20 at 15:02

4 Answers 4

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.

share|improve this answer
1  
Good find, nice answer. –  mfinni Oct 9 '13 at 16:08
1  
Can 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. –  Brian Knoblauch Aug 28 at 18:47

Disable the Windows Update service. Not in service manager - jus tstop it. The countdown is from the service, not windows itself.

If you stop it - no more updates UNTIL The machine is manually restarted.

http://www.techspot.com/guides/230-prevent-automatic-windows-update-restarts/

same works with server 2012. "net stop" and then stop the service.

share|improve this answer
    
That 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. –  Bryansix Jan 9 '13 at 19:08
    
Change it seems. I dont like it either. The 3am is a config Thing ;) My reboots happen on the Weekend. –  TomTom Jan 9 '13 at 19:13
    
this answer actually didn't work for me. stopped Windows Update service, and kept getting the countdown banners on the Server 2012. –  Bret Fisher Jan 15 '13 at 0:34
    
Did you stop it using "Net Stop wuauserv" or did you kill the process? When I stopped the service, the banner stopped showing up and the server did not reboot. –  Bryansix Jan 15 '13 at 15:54
    
I think he stopped the wrong one. –  TomTom Jan 15 '13 at 16:34

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

MS KB documenting issue

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.