Jump to content
Sign in to follow this  
bobheart

system restore point

Recommended Posts

bobheart

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
bobheart

Anyone happen to know this ?

Share this post


Link to post
Share on other sites
randd

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
bobheart

Ok thanks .

Share this post


Link to post
Share on other sites
Budman

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  

×