Windows 10: A vbs script to create a system restore point?

Discus and support A vbs script to create a system restore point? in Windows 10 Support to solve the problem; Hi. I have always used this vbs script in Windows 7.. it brings up a dialogue box, into which you enter your restore point naem, and that's it. Works a... Discussion in 'Windows 10 Support' started by martinlest, Sep 27, 2018.

  1. martinlest Win User

    A vbs script to create a system restore point?


    Hi. I have always used this vbs script in Windows 7.. it brings up a dialogue box, into which you enter your restore point naem, and that's it. Works a charm. But I can't see how to adapt it so that it will work in Windows 10? Can anyone kindly help? Thanks!

    Code: WScript.Sleep 1000 If GetOS = "Windows 7" Then If WScript.Arguments.length =0 Then Set objShell = CreateObject("Shell.Application") objShell.ShellExecute "wscript.exe", """" & _ WScript.ScriptFullName & """" & " uac","", "runas", 1 Else CreateSRP End If End If Sub CreateSRP Set SRP = getobject("winmgmts:\\.\root\default:Systemrestore") sDesc = "" sDesc = InputBox ("Enter a Restore Point description.", "Create System Restore Point","") If Trim(sDesc) <> "" Then sOut = SRP.createrestorepoint (sDesc, 0, 100) If sOut <> 0 Then WScript.echo "Error " & sOut & _ ": Unable to create System Restore Point." End If End If End Sub Function GetOS Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _ ".\root\cimv2") Set colOS = objWMI.ExecQuery("Select * from Win32_OperatingSystem") For Each objOS in colOS If instr(objOS.Caption, "Windows 7") Then GetOS = "Windows 7" End If Next End Function[/quote]

    :)
     
    martinlest, Sep 27, 2018
    #1
  2. Reymichael Ros Win User

    creating a restore point

    Hi Anthony,

    We understand that you're having an issue with creating a restore point. For us to further assist you, we'd like to gather additional information.

    • Have you tried creating system restore point manually?
    • Have you tried any troubleshooting steps before posting this concern? If yes, what are those?

    If you haven't created a system restore point manually, you can refer to the article below and follow the instructions given. Disable your antivirus or security software and then try to create a system restore point manually.

    Create a system restore point

    Looking forward to your response.
     
    Reymichael Ros, Sep 27, 2018
    #2
  3. PaulPerson Win User
    Win 10 Anniversary Restore Point Puzzle

    I believe in restore points. They have saved my hash on several occasions.

    I believe in them so much that I run a script every day to create one.

    This script relies on what appears to be a VBS function "createrestorepoint" applied to a VBS object of type "winmgmts:\\.\root\default:Systemrestore".

    This worked fine before the Anniversary edition was installed over the prior Win 10.

    The problem is this: when invoked, it runs all right, and takes some time (as it should), and the function returns a "success" flag which produces a very nice MsgBox reporting success, but the System Restore button on the System Properties System Protection
    tab does not show the restore point as existing.

    When I create a restore point using the Create button on the System Properties System Protection tab to create a restore point, System Restore /does/ list the restore point.

    Note that System Restore lists the restore points available when you select the "Choose a different restore point" and then select "Next".

    Using the Configure button on the System Properties System Protection tab, shows this values for "Current Usage":

    2.06 before any attempt

    2.12 after the /manual/ attempt

    2.19 after the /scripted/ attempt -- which followed the manual attempt immediately

    So I think what is happening is that the script is, indeed, creating a System Restore point, but System Restore cannot see it. Of course, I am simply describing what I am looking at, and what is really happening could be quite different.

    Indeed, the Current Usage is showing 2.32, but I have made no further attempts and no additional System Restore points are listed. So something else is also affecting this value.

    My question, of course, is: how do I get System Restore to recognize the script-created restore points?
     
    PaulPerson, Sep 27, 2018
    #3
  4. Brink Win User

    A vbs script to create a system restore point?

    Brink, Sep 27, 2018
    #4
Thema:

A vbs script to create a system restore point?

Loading...
  1. A vbs script to create a system restore point? - Similar Threads - vbs script create

  2. Script Create Restore Point Windows 10

    in Windows 10 Installation and Upgrade
    Script Create Restore Point Windows 10: Hay everyone, i have question, i want to create restore point for Windows 10 (All Version Windows 10 and Specified Windows 10 Professional), but i want create it by script, i have create restore point for Windows 7 just like that : Wmic.exe /Namespace:\\root\default Path...
  3. System restore point has not been created

    in Windows 10 BSOD Crashes and Debugging
    System restore point has not been created: computer is not working correctly so I attempted system restore but error message says there is no restore point created on MS10? How can I resolve this...
  4. System Restore will not do a restore to previous created Point

    in Windows 10 Backup and Restore
    System Restore will not do a restore to previous created Point: I am running windows 10 PRO (64Bit) Version 1709 installed about October2017 I have a MBR Partition 1 TB HD Everytime I try to use System Restore ( For any type of reason) Most of which is just to see if it works, Does not, and it has not worked since I went from version...
  5. Creating restore points?

    in Windows 10 Backup and Restore
    Creating restore points?: Is there an application, freeware or paid, that works in creating restore points in Windows 10, so if an installed application messes things up, I can restore the saved point, so Windows 10 loads as if the application was never installed in the first place, and Windows...
  6. Create Restore Points

    in Windows 10 Backup and Restore
    Create Restore Points: Hi Group, I'm wondering if W-10 can be configured to create a system restore point on a regular basis? Like maybe once a week or so. Also, how much drive space does a restore point use? Thanks 101418
  7. System Restore not creating restore points after Anniversary upgrade.

    in Windows 10 Backup and Restore
    System Restore not creating restore points after Anniversary upgrade.: Since upgrading system restore is not creating restore points automatically. I have to create them manually and then they are being deleted automatically every 3 - 7 days. I tried allocating more disk space to restore but that has done no good. I also use an uninstaller...
  8. can not create/restore system point

    in Windows 10 Backup and Restore
    can not create/restore system point: Hi. can not create/restore system point. Please help, Thanks. 79135
  9. Scheduled Instant Restore Point - No Restore Point Created

    in Windows 10 Backup and Restore
    Scheduled Instant Restore Point - No Restore Point Created: I followed the instruction to manually create a Manual Restore Point and that works fine. Then I decided to set up the task in the Task Scheduler to automatically create a restore point once daily. For some reason the task is started as it should but it never completes and I...
  10. Create System Restore Point in Windows 10

    in Windows 10 Tutorials
    Create System Restore Point in Windows 10: 'Jeez Louise' Shawn, you're a busy man! I'm gonna hafta make a tutorial on 'How to Slow Down Makin Tutorials' just so you can have a rest! *Wink Keep up the good work my friend! *Smile 4571