Jump to content

Create a "System Restore" point unattended


Recommended Posts

How can you silently create a restore point ? Sometimes it becomes necessary when servicing a system (or before deploying something major through group policy). The below code is the one to do it:

'Unattended System Restore Point
'sysrestorepoint.vbs

Set sr = getobject("winmgmts:\\.\root\default:Systemrestore")

msg = "New Restore Point successfully created." & vbCR
msg = msg & "It is listed as: " & vbCR
msg = msg & "Automatic Restore Point " & Date & " " & Time

Hoping this helps somebody out there.

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...