windows-nt/Source/XPSP1/NT/admin/pchealth/sr/tools/scripting/resstat.vbs

14 lines
276 B
Plaintext
Raw Normal View History

2020-09-26 03:20:57 -05:00
Set obj = GetObject("winmgmts:{impersonationLevel=impersonate}!root/default:SystemRestore")
stat = obj.GetLastRestoreStatus()
If stat = 0 Then
wscript.Echo "Failed"
ElseIf stat = 1 Then
wscript.Echo "Success"
ElseIf stat = 2 Then
wscript.Echo "Interrrupted"
End If