Create System Restore Point shortcut in Windows 10  

Page 9 of 21 FirstFirst ... 789101119 ... LastLast

  1. Posts : 27
    Windows 10
       #80

    dalchina said:
    A while back you mentioned "now get VSS error."
    Does the event log tell you anything helpful?
    What was the error msg - have you researched it?
    Look at post #61....it says handler issue.
    System Restore Point shortcut - Create in Windows 10 - Page 7 - Windows 10 Forums

    I am not a VSS guy nor do I understand the script so my fishing/googling for answers is not going to produce anything.
    I have a solution that works........the CMD line.........
    cmd.exe /k "wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "My Shortcut Restore Point", 100, 7"
    ....which also uses VSS, no errors, and provides a RP created.

    I'm willing to help debug/test any changes to the script but I can't provide any knowledgable insights on why.
    My suggestion is to boil down what the script is trying to run/launch for the RP command into a hard coded one or two line example I can put in a BAT file and see if works. It appears from reading the script that the coder is creating a shell app.......if so, something within that code is no longer valid to VSS under some new condition for some W10 configs within .105. I'm willing to test a hard coded (simplified...even more than the "test" one) version but past that I don't know how to proceed.
      My Computer


  2. Posts : 1
    Windows 10
       #81

    I am having this exact same issue. The script no longer works. I can manually create a system restore point, but the script now gives me VSS errors, even if I manually run the script. It creates an 8193 error that says either:

    Volume Shadow Copy Service error: Unexpected error calling routine QueryFullProcessImageNameW. hr = 0x80070006, The handle is invalid..

    Operation:
    Executing Asynchronous Operation

    Context:
    Current State: DoSnapshotSet

    or

    Volume Shadow Copy Service error: Unexpected error calling routine QueryFullProcessImageNameW. hr = 0x8007001f, A device attached to the system is not functioning.
    .

    Operation:
    Executing Asynchronous Operation

    Context:
    Current State: DoSnapshotSet


    This error only started after the Anniversary Update.
      My Computer


  3. Posts : 27
    Windows 10
       #82

    MadDemon64 said:
    I am having this exact same issue. The script no longer works. I can manually create a system restore point, but the script now gives me VSS errors, even if I manually run the script. It creates an 8193 error that says either:

    Volume Shadow Copy Service error: Unexpected error calling routine QueryFullProcessImageNameW. hr = 0x80070006, The handle is invalid..

    Operation:
    Executing Asynchronous Operation

    Context:
    Current State: DoSnapshotSet

    or

    Volume Shadow Copy Service error: Unexpected error calling routine QueryFullProcessImageNameW. hr = 0x8007001f, A device attached to the system is not functioning.
    .

    Operation:
    Executing Asynchronous Operation

    Context:
    Current State: DoSnapshotSet


    This error only started after the Anniversary Update.
    I mean this in the most light hearted way....YEAH !!!!
    Thought I was going crazy and the experts here I think were wondering if it is a "poster system one-off issue".
    Anyway, welcome aboard !!!! ....I'm sure these guys will figure it out.....smart cookies.

    In mean time you can use this command...
    cmd.exe /k "wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "My Shortcut Restore Point", 100, 7"
    as a stop gap until the script is fixed.....not as elegant but works.

    Note, under CMD the /k means to keep command prompt open, /c means to close.
    I use the /c version under my task scheduler so it runs daily and the window pops up for 30 seconds or so then closes.
    I use the /k version on my Desktop as shortcut.

    Again, do not like it as much as this script.....not as clean, but will work in mean time.
    Last edited by Brink; 07 Sep 2016 at 10:54.
      My Computer


  4. Posts : 42,734
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #83

    You could try Tweaking.com's free cautious repair tool - select only the Repair VS Copy Service repair.

    And you could think about trying this:
    VSS error 8193

    Ok, different specific error, but same kind of general error.
    Nothing ventured.. nothing gained. You could at least look at that reg. key.
      My Computers


  5. Posts : 27
    Windows 10
       #84

    dalchina said:
    You could try Tweaking.com's free cautious repair tool - select only the Repair VS Copy Service repair.
    Sorry, but the problem is not with our PCs (O/S).....it is with the script.
    I ran SFC and no integrity issues.
    Also, the VSS works fine with both the manual CP > System & also CMD line creation.
    VSS also works fine with my Macrium Image of my HDD daily to USB HDD.
    I'm not going to experiment on my PC...clearly not a "PC" issue.
    You also have poster that it fails on with multiple HDDs enabled.
    Check out the crazy video on post #66: System Restore Point shortcut - Create in Windows 10 - Page 7 - Windows 10 Forums

    I'm willing to test out more cut down VBS to get to root cause....my recommendation is to provide a hard coded string that I can put in BAT file to see if works.....my efforts here are to help with something that clearly has a coding issue. I have a solution with the CMD string that works fine.....I'm but not going to jeoporadize my PC in any way by running other utils, etc.

    IMHO there are many folks having this problem but since the script "completes" they really have no idea if the RP was truly created unless they go check, nor do they know there was associated VSS issue for reason of failure.
    It would take more than the average user to note/check these things.....AND nothing to alarm them things are wrong.
      My Computer


  6. Posts : 27
    Windows 10
       #85

    dalchina said:
    You could try Tweaking.com's free cautious repair tool - select only the Repair VS Copy Service repair.
    And you could think about trying this:
    VSS error 8193

    Ok, different specific error, but same kind of general error.
    Nothing ventured.. nothing gained. You could at least look at that reg. key.
    Yes, things ventured can really F-Up things.

    And YES, if you read in prior parts of thread there is no .BAK in registry for User Profile.
    Look at my post #63: System Restore Point shortcut - Create in Windows 10 - Page 7 - Windows 10 Forums
    The VSS works....just not within this script.
      My Computer


  7. Posts : 68,665
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #86

    @thekochs,

    I don't like how crude the command currently runs, and would like to use it but with the same way the scripts in the tutorial run for better usage.

    I'm going to work on completely rewriting the scripts today to use the newer command, then post back with it for you to test if you like. :)
      My Computers


  8. Posts : 27
    Windows 10
       #87

    Brink said:
    @thekochs,

    I don't like how crude the command currently runs, and would like to use it but with the same way the scripts in the tutorial run for better usage.

    I'm going to work on completely rewriting the scripts today to use the newer command, then post back with it for you to test if you like. :)
    Agreed.........CMD is brute force but works in mean time.

    Happy to try what you come up with.
    My suggestion is you will create a script with a lot of IF/THEN to ID things.
    If you want to send me a line or two that is the RAW RP creation that we can put in simple BAT file (eliminates VBS issue) then I can try.
    If that works then you can build the nice script around it.
      My Computer


  9. Posts : 68,665
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #88

    Ok @thekochs,

    Here are two scripts to test. If it works for you, then I'll use it with a version that you can enter your own restore point description like step 4 and 5.

    The first one below, is a basic one just to test the W10 command. You'll just need to run the .vbs, and click on Yes in the UAC prompt to allow.

    Test_Instant_Restore_Point.vbs

    The second one below, is to test the same W10 command above, but also using get OS from the original script for compatibility with previous Windows. This is to test to make sure none of the get OS is working with W10 command for you as well.

    Instant_Restore_Point.vbs
      My Computers


  10. Posts : 27
    Windows 10
       #89

    Brink said:
    Ok @thekochs,

    Here are two scripts to test. If it works for you, then I'll use it with a version that you can enter your own restore point description like step 4 and 5.

    The first one below, is a basic one just to test the W10 command. You'll just need to run the .vbs, and click on Yes in the UAC prompt to allow.

    Test_Instant_Restore_Point.vbs

    The second one below, is to test the same W10 command above, but also using get OS from the original script for compatibility with previous Windows. This is to test to make sure none of the get OS is working with W10 command for you as well.

    Instant_Restore_Point.vbs
    OK...tried the first one but go no UAC prompt.......did not create RP & VSS error.
    Oddly here is window is generated which looked like the window from CMD line.
    Create System Restore Point shortcut in Windows 10-script.jpg

    This was at header of above when "running"
    Create System Restore Point shortcut in Windows 10-2016-09-07_132646.jpg

    I then ran the CMD line one I have and it DID create RP & no VSS issue......here is pic of that window.
    Create System Restore Point shortcut in Windows 10-cmd.jpg
    This was header of the above CMD when "running"
    Create System Restore Point shortcut in Windows 10-2016-09-07_132840.jpg

    So, other than the name in quotes "*****" the difference is 100, 7 vs 100, 0 ?

    UPDATE
    I changed your VBS code from 0 to 7...and it worked !!!!!
    WScript.CreateObject ("WScript.Shell").run "cmd /k ""wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint ""Instant Restore Point"", 100, 7"""
    What is that parameter ?
      My Computer


 

Tutorial Categories

Create System Restore Point shortcut in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:58.
Find Us




Windows 10 Forums