Use this simple VBScript in order to create a Windows System Restore Point.

' Create a System Restore Point    CONST DEVICE_DRIVER_INSTALL = 10  CONST BEGIN_SYSTEM_CHANGE = 100  strComputer = "."  Set objWMIService = GetObject("winmgmts:" _  & "{impersonationLevel=impersonate}" & strComputer & "rootdefault")  Set objItem = objWMIService.Get("SystemRestore")  errResults = objItem.CreateRestorePoint _  ("Scripted restore", DEVICE_DRIVER_INSTALL, BEGIN_SYSTEM_CHANGE)
Tagged with:  

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!