You can create System Restore Points quickly by scripting it using WMI. Here is a script that helps you create a System Restore point in a single click in Windows 10, 8, 7, Vista and in Windows XP. There are two methods discussed, one using a Vbscript that I wrote, and other other is using WMIC (WMI Command-line interface).
Restore Point creation using Script
Download create_restore_point.zip and extract the vbscript to a folder of your choice, say D:\Scripts. Double-click the file create_restore_point.vbs to run it. When you see the following prompt, type the description and press ENTER. The description you provided here will be listed in the System Restore window.
The text box is pre-populated with the text Manual Restore Point. You may use the default description, or modify it accordingly before clicking OK.
Note: You won’t see the input box above, if the script detects you’re using Windows 10. That’s because due to a change in Windows 10 Anniversary Update v1607, custom restore point description don’t work. Restore points are always named “Automatic Restore Point”.
Tip #1: If you want to use the default description and don’t want the input box to appear, edit the file create_restore_point.vbs using Notepad, and delete line #37 (line that starts with the following code) and save the file.
sDesc = InputBox ("Enter a description.".......
The script does not show a confirmation message box if the operation is successful. If the Create operation failed, it does show you the error code it encountered.
Tip #2: You may create a shortcut to the script and place it in your Quick Launch folder, and customize the shortcut icon accordingly. In Windows XP, you can use the icon in C:\Windows\System32\Restore\rstrui.exe and C:\Windows\System32\rstrui.exe in Windows Vista and higher. In Windows 7 and higher, you can pin the shortcut to the script in the Taskbar or in the Start menu.
Just to prove that this script works in Windows 10 as well here is a screenshot from a Windows 10 computer :)
Here is how I pinned the shortcut to the Start menu in Windows 10…
Note: To Pin the shortcut to the script to Taskbar or Start menu, edit the script shortcut’s properties and append wscript.exe before the target path.
This script can be run (administrator privileges required) in Windows XP, Windows Vista, Windows 7, Windows 8 and Windows 10. In Windows Vista and higher, the script restarts automatically to run in elevated mode, which is required to create a System Restore point. It uses the ShellExecute function, passing the runas verb to run as administrator (elevated). You’ll need to click Continue when you see the following User Account Control (UAC) dialog. For more details, read article VBScripts and UAC elevation and Scripting Elevation on Vista from Aaron Margosis’ blog.
Restore Point creation using WMIC
(This wonderful tip which uses the powerful WMIC to create a restore point in single command-line, was discovered by tweakradje, who also has some nice tips and tweaks up his sleeve.)
Open a elevated (admin) Command Prompt, and type in:
Wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "%DATE%", 100, 1
Or something like:
Wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "My Restore Point", 100, 12
This creates a restore point automatically. You may create a desktop shortcut to the above WMIC command-line, assign a icon (from rstrui.exe) and set it to run as administrator when double-clicked.
Prefix the target path with cmd /k (and a space) command before the wmic.exe command-line
When you want to create a System Restore point, simply double-click the file.
Note that in Windows 8 and higher, if an application or script calls the CreateRestorePoint method to create a restore point, Windows skips creating this new restore point if any restore points have been created in the last 24 hours. So, if the above WMIC command-line doesn’t create a restore point for you, it’s probably because there is another restore point created within the last 24 hours. This frequency can be altered by editing the registry if required.
About the author
Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and has a vast experience in the ITeS industry — delivering support for Microsoft's consumer products. He has been a Microsoft MVP [2003 to 2012] who contributes to various Windows support forums.