Does anyone know how to find when a system needs a reboot after being patched? I would like to generate a list
of systems that need a reboot, but can't find a registry setting or something I might be able to query using code.
Maybe its stored on the WSUS SVR in a SQL table?
Any ideas ?
I found thisVB script codein the script center but it can not be run against remote systems.
This is supposed to help detect if a system needs to be rebooted. I have not been able to verify if this actually works
becauseI have to find a system in this state to test it.
(Just place this in a Text file with notepad and call it wsusreboot.vbs. )
Set objSysInfo = CreateObject("Microsoft.Update.SystemInfo")
If objSysInfo.RebootRequired Then
Wscript.Echo "This computer needs to be rebooted."
Else
Wscript.Echo "This computer does not need to be rebooted."
End If