windows-nt/Source/XPSP1/NT/admin/pchealth/sr/tools/scripting/resstat.vbs
2020-09-26 16:20:57 +08:00

14 lines
276 B
Plaintext

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