Restore-Computer

Restore the computer to a previous state.

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

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

   -confirm
       Prompt for confirmation before executing the command.

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

   CommonParameters:
       -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.

Examples

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:

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


© Copyright SS64.com 1999-2013
Some rights reserved