title | description | ms.assetid | keywords | topic_type | api_name | api_location | api_type | ms.topic | ms.date | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GetLastRestoreStatus method of the SystemRestore class |
Retrieves the status of the last system restore. |
03f9fd71-9f20-428e-bdca-4692e838581a |
|
|
|
|
|
reference |
05/31/2018 |
Retrieves the status of the last system restore.
uint32 GetLastRestoreStatus();
This method has no parameters.
The method returns one of the following status values.
Return value | Description |
---|---|
|
The last restore failed. |
|
The last restore was successful. |
|
The last restore was interrupted. |
'GetLastRestoreStatus Method of the SystemRestore Class
'Retrieves the status of the last system restore.
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
Requirement | Value |
---|---|
Minimum supported client |
Windows XP [desktop apps only] |
Minimum supported server |
None supported |
Namespace |
Root\Default |
MOF |
|