/build/static/layout/Breadcrumb_cap_w.png

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? 

Thanks,
Kevin

0 Comments   [ + ] Show comments

Answers (2)

Posted by: anonymous_9363 9 years ago
Red Belt
0
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 9 years ago
Red Belt
0
check the registry keys

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\UpdateExeVolatile

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

DY388e.jpeg
 
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