Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
276 B

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