Create System Restore Points Quickly using Script in Windows Vista and Windows XP
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 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 in Windows XP (Admin privileges required) and Windows Vista. In 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.

Copyright © 2008 Ramesh Srinivasan. All rights reserved.
RELATED POSTS
- Restore Point creation disabled by Group Policy
- Add Quick Launch (create shortcut) option to the Send To menu in Windows XP/Vista
- Quickly clear the Google Chrome Cache using Script
- Restore the Address Toolbar (Deskband) after installing Windows XP SP3
- How to run .BAT files invisibly, without displaying the Command Prompt window
- Search Results
- How to reduce the space allotted to System Restore in Windows Vista
- Default Programs list is completely empty
- Fix for System Restore error 0×8007007B in Windows Vista
- Change the default icon for unknown file types in Windows Vista
BOOKMARK THIS PAGE
BlinkList | del.icio.us | Digg it | Furl | ma.gnolia | Newsvine | reddit | Spurl | Wink |



If you enjoyed this post, make sure you
Prefer an E-mail subscription?
Comment by Deyaa Addeen Fahmy Shedeed on 17 May 2008:
appreciate UR EFFORT, thanks.
Comment by Oqoman on 20 May 2008:
Can you add an automatic Date/Time to the Text Box/File?
Thanks!
Jim
Comment by admin on 20 May 2008:
Hi Jim, The date/timestamp is shown in the System Restore window. Any reason why you want the date/time in the description field?
Comment by Sam on 4 June 2008:
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?
Comment by Ramesh Srinivasan on 4 June 2008:
@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