/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


How to check if there is a pending reboot?

07/06/2015 13975 views
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

Comments


All Answers

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.


Answered 07/06/2015 by: VBScab
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
Answered 07/06/2015 by: SMal.tmcc
Red Belt

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:

Share

 
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