When we want to create a system restoration point, the general method is: start --> all programs --> accessories --> System Tools --> System Restoration, then, follow the steps under the guidance of the System Recovery wizard.
In fact, with the following tips, you only need to click or double-click the mouse to create a system restore point.
The operation is as follows:
1. Start --> all programs --> attachments --> notepad
2. Enter the following two lines in Notepad (we can also copy/paste them ):
--------------------------------------------------------------------------------
Set IRP = getobject ("winmgmts: \. ootdefault: Systemrestore ")
MYRP = IRP. createrestorepoint ("Restore origin of my system 1", 0,100)
--------------------------------------------------------------------------------
3. Use the notepad menu: file --> Save As, set the storage location to desktop, set the file type to "all files (*. *)", and file name to: create System Restore Point. vbs in real time.
To create an instant restore point, you only need to run the script "instant create System Restore Point. vbs" on the desktop. When the script is running, the system restore program will not display the interface. Run it in the background and create a Restore Point named "My System Restore Point 1.
In fact, VBScript uses the WMI (Windows Management Instrumentation) alias to access the system restoration class and calls related methods to create a system restore point.
Note: You must have the Administrator permission to use this script to create a system restore point.