TechColumnist Storage Information Blog

24Aug/070

Check for reboot

call checkpendingstatus
sub CheckPendingStatus
Set ComputerStatus = CreateObject("Microsoft.Update.SystemInfo")
If ComputerStatus.RebootRequired Then
wscript.echo "This computer has a pending reboot."
Else
wscript.echo "this computer does not have a pending reboot."
End If
End sub
Tagged as: Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.