List the Results of the Last System Restore in Windows
You can use any of the VBScript programs below in ActiveXperts Network Monitor. Click here for an explanation about how to include scripts in ActiveXperts Network Monitor.
List the Results of the Last System Restore in Windows using VBScript, WMI and LDAPExample(s)
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\default") Set objItem = objWMIService.Get("SystemRestore") errResults = objItem.GetLastRestoreStatus() Select Case errResults Case 0 strRestoreStatus = "The last restore failed." Case 1 strRestoreStatus = "The last restore was successful." Case 2 strRestoreStatus = "The last restore was interrupted." End Select Wscript.Echo strRestoreStatus