Get-ComputerRestorePoint

Gets the restore points on the local computer.

Syntax
      Get-ComputerRestorePoint [[-RestorePoint] Int32[]] [CommonParameters]
    
      Get-ComputerRestorePoint -LastStatus [CommonParameters]

Key
   -LastStatus
       Get the status of the most recent system restore operation.

   -RestorePoint int
       Get the restore points with the specified sequence numbers.
       Enter the sequence numbers of one or more restore points.
       By default, Get-ComputerRestorePoint gets all restore points on the local computer.

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

You can use Get-ComputerRestorePoint to select a restore point, and you can use the sequence number to Restore-Computer.

Examples

List all the restore points on the local computer:

PS C:> get-computerrestorepoint

Get the sequence number of the most recently created restore point:

PS C:> ((get-computerrestorepoint)[-1]).sequencenumber

List all the restore points on the local computer in a table:

PS C:> get-computerrestorepoint | format-table SequenceNumber, _
@{Label="Date"; Expression={$_.ConvertToDateTime($_.CreationTime)}}, Description -auto

Display the status of the most recent system restore operation:

PS C:> get-computerrestorepoint -laststatus

Get the restore points with sequence numbers 460, 461, and 464:

PS C:> get-computerrestorepoint -restorepoint 460, 461, 464

#You can't always get what you want, but if you try sometimes, you might find, you get what you need# ~ The Rolling Stones

Related:

Restore-Computer - Restore the computer to a previous state
Enable-ComputerRestore - Enable System Restore on a drive


© Copyright SS64.com 1999-2013
Some rights reserved