How to Set a Restore Point From the Command Prompt

Written by cameron easey
  • Share
  • Tweet
  • Share
  • Email

Creating a restore point in Windows is typically done in the System Properties dialogue box for Windows Vista or Windows 7. However, if you want to create a restore point from a command prompt, you will need to create a script that can be run by a command. If you are running Windows XP and your system will not start, you will need to access System Restore from a command prompt by first booting into Safe Mode.

Skill level:
Moderate

Other People Are Reading

Instructions

  1. 1

    Click the "Start" button and then type “notepad” into the text box and click the “OK” button. This opens the Notepad program.

  2. 2

    Type “set SRP = getobject(“winmgmts:\.\root\default:Systemrestore”).” Press the “Enter” key to go to the next line.

  3. 3

    Type “CSRP = SRP/createrestorepoint (“Restore Point Created”, 0, 100).” Press the “Enter” key to go to the next line. Type “If CSRP <> 0 then” and then press the “Enter” key.

  4. 4

    Type “Msgbox “Error “ & CSRP & “: Unable to create System Restore point”” and press the “Enter” key. Type “End If” and click the "File" drop-down. Select the “Save” option and then select a location to save the file.

  5. 5

    Enter a name for the file, such as “crp.vbs,” and then click the “Save” button.

  6. 6

    Click the "Start" button and then type “cmd” into the text box and click the “OK” button. This opens a command prompt.

  7. 7

    Type “wscript.exe C:\crp.vbs” and then press the “Enter” key. A message box should appear that says “Restore Point Created.”

  1. 1

    Restart the computer and then press the “F8” key when the splash screen appears. Tab down and select the “Safe Mode with a command prompt” option.

  2. 2

    Press the “Enter” key to boot into Safe Mode. Enter your administer user name and password when the system starts, if necessary.

  3. 3

    Type “%systemroot%\system32\restore\retrui.exe” and then press the “Enter” key. This runs System Restore.

Tips and warnings

  • If an error appears when running the command, you will need to go back and check the code for the script.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.