Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
Add all your servers in Server Manager somewhere. Somehow server manager is able to report pending reboots. – Zoredache Aug 11 '14 at 22:58
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 '14 at 23:02
I found the following script… 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 '14 at 23:04

Your Answer


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

Browse other questions tagged or ask your own question.