/* Disables system restore on a computer. This is equivalent to selecting the checkbox Turn off System
* Restore (found by right-clicking My Computer, clicking Properties, and then clicking on the System
* Restore tab in the resulting dialog box).
*/
strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\default")
objitem = objwmiservice~get("SystemRestore")
errresults = objitem~disable("")