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 7, Windows Vista and Windows XP.

Restore Point creation using Script

Download createsrp.vbs and save to a folder of your choice, say D:\Scripts.

Double-click the file createsrp.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 alter it accordingly before pressing ENTER.

Tip #1: If you want to use the default description and don’t want the input box to appear, edit the file createsrp.vbs using Notepad, and delete line #23 (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.

More Information

This script can be run (Admin privileges required) in Windows XP, Windows Vista and Windows 7. In Windows 7 and Windows Vista, 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’ WebLog.

Related Posts


Email SubscriptionPrefer an E-mail subscription?

Enter your email address:

Delivered by FeedBurner

5 Comments

  1. said this on Wednesday, June 4th 2008 9:37 am

    @Sam: You can use the Disk Cleanup tool to remove the restore points. See:

    Remove all System Restore points except the recent one
    http://www.winxptutor.com/srclear.htm

  2. Sam
    said this on Wednesday, June 4th 2008 5:51 am

    xp 32-bit, i have 2 drives divided into 3 partitions each. I only want system restore monitoring my C (xp) drive, when I want to free up the old backups it makes, i have to turn it off and on again, which is a pain as i have to go through the list to set them back up the way I like. is there a to either;

    a. have a shortcut/context menu item “delete old restore points”
    b. a vbs script that automates the process

    this is one of my pet peeves in win xp. any suggestions?

  3. said this on Tuesday, May 20th 2008 9:37 am

    Hi Jim, The date/timestamp is shown in the System Restore window. Any reason why you want the date/time in the description field?

  4. Oqoman
    said this on Tuesday, May 20th 2008 8:29 am

    Can you add an automatic Date/Time to the Text Box/File?
    Thanks!
    Jim

  5. Deyaa Addeen Fahmy Shedeed
    said this on Saturday, May 17th 2008 1:13 pm

    appreciate UR EFFORT, thanks.

Leave a Reply