How to Set a Restore Point From the Command Prompt

Creating a restore point in Windows is typically done in the System Properties dialog 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.

Instructions

  1. Windows Vista or Windows 7

    • 1

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

    • 2

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

    • 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

      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

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

    • 6

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

    • 7

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

    Windows XP

    • 8

      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.

    • 9

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

    • 10

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

Tips & Warnings

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

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured