14 lines
276 B
Plaintext
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
|
||
|
|
||
|
|
||
|
|
||
|
|