/* Performs a system restore on a computer using system restore point No. 20. To perform a system
* restore using a different system restore point, simply change the value of RESTORE_POINT.
*/
restore_point = 20
strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\default")
objitem = objwmiservice~get("SystemRestore")
errresults = objitem~restore(restore_point)