If you use the System Restore function in Windows 10 to revert your operating system to the last known stable point when it was working correctly, you might be interested in creating a new restore point with PowerShell. This can be useful with various automation scenarios. Also, you can create a special shortcut to execute the PowerShell command and make a new restore point with one click.
This can be especially useful in Windows 10 because System Restore has been scaled back to create restore points far less frequently, even as low as once a week. Before you begin, make sure you have System Restore enabled.
To create a restore point in Windows 10 with PowerShell, you need to do the following:
- Open PowerShell as Administrator.
- Type or copy-paste the following command:
Checkpoint-Computer -Description "RestorePoint1" -RestorePointType "MODIFY_SETTINGS"
Once you press the Enter key, a special cmdlet Checkpoint-Computer will create a new restore point. Let's see what the command line arguments that are used in it do:
Description - specifies a name for your restore point.
RestorePointType - Specifies the type of restore point.
The acceptable values for the RestorePointType parameter are:
The default value is APPLICATION_INSTALL.
Please keep in mind, that in Windows 10, Checkpoint-Computer cannot create more than one restore point every day. If you try to create a new restore point before the 24-hour period has elapsed, Windows PowerShell generates the following error:
"A new system restore point cannot be created because one has already been created within the past 24 hours. Please try again later."
If you need to create a shortcut for this operation, you can do the following.
Right click on the Desktop and select the command "New -> Shortcut" from the context menu.
In the shortcut target, type or copy-paste the following text:
powershell -Command "Start-Process powershell.exe -ArgumentList '-ExecutionPolicy Bypass -NoExit -Command \`"Checkpoint-Computer -Description \"RestorePoint1\" -RestorePointType \"MODIFY_SETTINGS\"\`"' -Verb RunAs"
Specify the desired name for your shortcut and set the icon of your choice and you are done.
Additionally, see these articles:
- Start a Process Elevated from PowerShell
- How to create a Restore point in Windows 10
- Create a restore point in Windows 10 with one click