I need to create System Restore Point before the installation of our application starts. I found some script that does this.
But i m facing some difficulties in doing so in Vista Machines. I believe it is due to permission problem.

Please let me know how to overcome this in Vista?

0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


Here is the VBScript i am using to create System Restore Point:

If WScript.Arguments.Count = 0 Then
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute "wscript.exe", "D:\SystemRestoreforVista.vbs" & " uac", , "runas", 1
Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
strDescription = InputBox("Restore point description: ","Installed Application")

MYRP = IRP.createrestorepoint (strDescription, 0, 100)
GetObject("winmgmts:\\.\root\default:Systemrestore").CreateRestorePoint "description", 0, 100
End If
Answered 12/05/2008 by: getIT
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity