On Oct 29, 1:41 pm, bretsharon <bretsha...@discussions.microsoft.com>
wrote:
> Can anyone tell me why the following gets error messages and won't execute?
> rp = "Scripted Restore Point by " & WScript.ScriptName GetObject
> ("winmgmts:\\.\root\default:Systemrestore").CreateRestorePoint rp, 0, 100
This one works:
Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
MYRP = IRP.createrestorepoint ("Manual Restore Point", 0, 100)
bretsharon - 30 Oct 2007 05:57 GMT
Nothing happens. I copied the command into vbs file. ??
Ramesh, MS-MVP - 30 Oct 2007 07:16 GMT
See if a System Restore point is created, with the name "Manual Restore Point".

Signature
Regards,
Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com
Nothing happens. I copied the command into vbs file. ??
bretsharon - 30 Oct 2007 12:13 GMT
You are correct. Thank you!!
> See if a System Restore point is created, with the name "Manual Restore Point".
>
> Nothing happens. I copied the command into vbs file. ??
Ramesh, MS-MVP - 30 Oct 2007 16:07 GMT
You're welcome!

Signature
Regards,
Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com
You are correct. Thank you!!
"Ramesh, MS-MVP" wrote:
> See if a System Restore point is created, with the name "Manual Restore Point".