Get ComputerRestorePoint - PowerShell


Overview

Get-ComputerRestorePoint retrieves information about restore points on the local or remote computers. These restore points can be used to restore the computer to a previous state in case of system failure or data loss.

Syntax

Get-ComputerRestorePoint [[-ComputerName] <string>] -RestorePointType <string> [-MaxCount <int>] [-Filter <string>] [<CommonParameters>]

Options/Flags

| Option | Description | Default Value |
|—|—|—|
| -ComputerName | Specifies the name of the computer to retrieve restore point information from. | Local computer |
| -RestorePointType | Specifies the type of restore points to retrieve. Valid values are: “Application”, “System”, “Registered”, “Custom”, “All”. | All |
| -MaxCount | Specifies the maximum number of restore points to retrieve. | 10 |
| -Filter | Filters the restore points based on the specified criteria. The filter syntax is similar to SQL WHERE clause. | None |

Examples

  • Get all restore points on the local computer:
Get-ComputerRestorePoint
  • Get the last 5 system restore points on the remote computer named “Server1”:
Get-ComputerRestorePoint -ComputerName Server1 -RestorePointType System -MaxCount 5
  • Get all restore points on the local computer that contain the string “MyBackup” in their description:
Get-ComputerRestorePoint -Filter "Description -like '*MyBackup*'"

Common Issues

  • Error: Access denied

This error occurs if you do not have sufficient permissions to access the restore point information on the specified computer. Make sure you have administrator privileges on both the local and remote computers.

Integration

Get-ComputerRestorePoint can be used with other PowerShell commands to manage and restore computer restore points. For example, you can use the following command to restore the system to a previous restore point:

Restore-Computer -RestorePoint <restore point ID>
  • Checkpoint-Computer
  • Restore-Computer
  • Checkpoint-Volume
  • Restore-Volume