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.

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 PowerShell Cmdlets

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


 
Copyright © 1999-2024 SS64.com
Some rights reserved