Results 1 to 8 of 8

Thread: System Restore DOES or DOES NOT create restore points daily?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Bronze Member
    Join Date
    Dec 2005
    Posts
    175
    You can schedule restore point creation. Copy the code to notepad and save the file with .vbs extension then use task scheduler to schedule it. When you run the script, it creates a restore point named "Automatic Restore Point" and logs an event (Event Id: 0, source: WSH, Description: System Restore..) in the event log.

    Code:
    Set sr = getobject("winmgmts:\\.\root\default:Systemrestore")
    Set WshShl = WScript.CreateObject("WScript.Shell")
    
    If (sr.createrestorepoint("Automatic Restore Point", 0, 100)) = 0 Then
        WshShl.LogEvent 0, "System Restore - Restore Point created successfully."
    Else
        WshShl.LogEvent 0, "System Restore - Restore Point creation failed!"    
    End If

  2. #2
    Bronze Member
    Join Date
    Dec 2005
    Posts
    175
    One more script!

    Last edited by Kane; March 8th, 2006 at 22:50 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •