How to check if there is a pending reboot?

I'm currently rolling out Sophos endpoint AV.  The automated install is sitting at a point where "reboot is required." Is there a default place in the registry or some other trick to check if a reboot is pending so I can prompt the user via a script? 


0 Comments   [ + ] Show comments

Answers (2)

Posted by: anonymous_9363 5 years ago
Red Belt
Google for 'PendingFileRenameOperations' as that's the commonest reason why reboots are required, especially with a/v where files will be open as the product is running.

Having said that, most places would send a string of emails warning of an up-coming update that requires workstations to be restarted. Each one would contain a disclaimer that, if you're dumb enough to leave your work unsaved when this deadline expires, don't come crying to IT when it gets zapped. The update would then simply deploy and trigger a restart.

Posted by: SMal.tmcc 5 years ago
Red Belt
check the registry keys


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations


Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ