Windows2003-3790/admin/pchealth/sr/tools/scripting/resstat.vbs
2020-09-30 16:53:55 +02:00

14 lines
289 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