Sign in to follow this  
Followers 0
bobheart

system restore point

5 posts in this topic

Anyone know how to do a system restore point with autoit ?

I can do it vbs but like to have an exe to do it with .

Set Args = wscript.Arguments
If Args.Count() > 0 Then
    RpName = Args.item(0)
Else 
    RpName = "Vbscript"
End If

Set obj = GetObject("winmgmts:{impersonationLevel=impersonate}!root/default:SystemRestore")

If (obj.CreateRestorePoint(RpName, 0, 100)) = 0 Then
    wscript.Echo "Success"
Else 
    wscript.Echo "Failed"
End If

Share this post


Link to post
Share on other sites



Anyone happen to know this ?

Share this post


Link to post
Share on other sites

Anyone happen to know this ?

This might be useful.

Sorry that's about all I can offer you.


Raoul S. Duke: Few people understand the psychology of dealing with a highway traffic cop. Your normal speeder will panic and immediately pull over to the side. This is wrong. It arouses contempt in the cop-heart. Make the bastard chase you. He will follow.

Share this post


Link to post
Share on other sites

Ok thanks .

Share this post


Link to post
Share on other sites

I downloaded a program written to create system restore points. It has a silent run option and should work fine. I just found it and haven't had time for testing. Grab it from Neowin

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0