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.

Is there a way, using powershell or otherwise, to query a remote computer and see if it has had windows updates applied and is in waiting to reboot state? Any additional information would be useful too, such as has it entered the 15 minutes will force restart period or when were the updates applied.

windows 2012 servers will not restart after applying windows updates if a user is logged on. sometimes you remote in, unlock it, and it will then reboot under you in the middle of the day on a production server... or critical updates get held up and not applied.

I understand this this behavior can be modified somewhat with GPOs or registry hacks but that is not my question.

share|improve this question
1  
Add all your servers in Server Manager somewhere. Somehow server manager is able to report pending reboots. –  Zoredache Aug 11 at 22:58
1  
thanks for that suggestion. that probably is a viable solution for some facing this issue but I am looking for something scriptable. –  bkr Aug 11 at 23:02
2  
I found the following script gallery.technet.microsoft.com/scriptcenter/… that get machines with pending reboots. combined with grabbing the date of the last windows update it may provide enough info to meet my needs. –  bkr Aug 11 at 23:04

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.