PoshTip #46 – Creating Restore Points Using PowerShell

As described by Microsoft, restore points are created to allow users a choice of previous system states. Each restore point contains the necessary information needed to restore the system to the chosen state. Restore points are created before key changes are made to the system.

You can manage restore points by the GUI but you also can manage them with Powershell which is great for automation!

The first step is to enable the system restore feature on your hard drive:

Now, I will create a restore point using the Checkpoint-Computer cmdlet:

Below are the acceptable values for « RestorePointType » parameter:

  • APPLICATION_INSTALL
  • APPLICATION_UNINSTALL
  • DEVICE_DRIVER_INSTALL
  • MODIFY_SETTINGS
  • CANCELLED_OPERATION

Note: The default is APPLICATION_INSTALL

To finish, you can check the new restore point:

 

Thanks for reading! You can follow me on Twitter @PrigentNico

About Nicolas 216 Articles
I work as a System Engineer, based in Switzerland with a primary focus on Microsoft technologies. I have 7 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSA: Windows Server 2012" and "Administering & Deploying SCCM" certified.