Restore the computer to a previous state.

      Restore-Computer [-RestorePoint] int
         [-Confirm] [-WhatIf] [CommonParameters]

   -RestorePoint int
       The sequence number of the restore point.
       To find the sequence number, use Get-ComputerRestorePoint

       Prompt for confirmation before executing the command.

       Describe what would happen if you executed the command without actually
       executing the command.

       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable,
       -OutBuffer -OutVariable.

Restore-Computer restores the local computer to the specified system restore point and restarts the computer.
The restore is completed during the restart operation.


Restores the local computer to restore point #64:

PS C:> restore-computer 64

Check the restore status:

PS C:> Get-ComputerRestorePoint -LastStatus

“A hundred years cannot repair a moment's loss of honor”

Related PowerShell Commands:

Get-ComputerRestorePoint - Get the restore points on the local computer
Enable-ComputerRestore - Enable System Restore on a drive

Copyright © 1999-2019
Some rights reserved