Leaked source code of windows server 2003
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
289 B

  1. Set obj = GetObject("winmgmts:{impersonationLevel=impersonate}!root/default:SystemRestore")
  2. stat = obj.GetLastRestoreStatus()
  3. If stat = 0 Then
  4. wscript.Echo "Failed"
  5. ElseIf stat = 1 Then
  6. wscript.Echo "Success"
  7. ElseIf stat = 2 Then
  8. wscript.Echo "Interrrupted"
  9. End If