Delete System Restore Points in Windows 10  

Page 3 of 5 FirstFirst 12345 LastLast

  1. Posts : 841
    Windows 10 Pro 21H2
       #20

    How to delete restore point with vbscript?
      My Computer


  2. Posts : 68,997
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #21

    rdwray said:
    How to delete restore point with vbscript?
    You may be able to use the command from option 3 to delete them.
      My Computers


  3. Posts : 841
    Windows 10 Pro 21H2
       #22

    Brink said:
    You may be able to use the command from option 3 to delete them.
    It does work in a batch file, but no in vbscript.
      My Computer


  4. Posts : 7,607
    Windows 10 Home 20H2
       #23

    Why do you want to use VBScript instead of a batch file?
      My Computer


  5. Posts : 841
    Windows 10 Pro 21H2
       #24

    Matthew Wai said:
    Why do you want to use VBScript instead of a batch file?
    I want to be able to delete the current restore point, create a new one and have the window close. The only batch file code that I can find leaves the window open and adding "Exit" at the end doesn't help:
    Code:
    vssadmin delete shadows /for=c:  /Quiet
    cmd.exe /k "wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "My Shortcut Restore Point", 100, 7"
      My Computer


  6. Posts : 7,607
    Windows 10 Home 20H2
       #25

    @rdwray, use VBScript to run your batch file:

    CreateObject("wscript.shell").run("""D:\A folder\rdwray.bat"""),0

    Create an elevated shortcut to run the VBScript file. No Command Prompt window will appear.
      My Computer


  7. Posts : 841
    Windows 10 Pro 21H2
       #26

    I added a "pause" to the batch file and created elevated shortcut but the batch file does not run:

    Code:
    CreateObject("wscript.shell").run("""D:\Programs\RestorePoint\PS.bat"""),0
    The whole problem with this is that "wmic" will not work without "cmd.exe /k" preceding it which open a second window which will not close.
      My Computer


  8. Posts : 7,607
    Windows 10 Home 20H2
       #27

    rdwray said:
    I added a "pause" to the batch file and created elevated shortcut but the batch file does not run:
    Click here to download a ZIP file. Extract the files and double-click to run "Testing.vbs". No elevated shortcut is needed. See whether the batch file will run. It runs at my end.
      My Computer


  9. Posts : 841
    Windows 10 Pro 21H2
       #28

    Got that to run with remove "Echo." which I have used in the past, but for some reason, it gets kicked out on my PC.

    BTW: Thanks....
      My Computer


  10. Posts : 7,607
    Windows 10 Home 20H2
       #29

    rdwray said:
    The whole problem with this is that "wmic" will not work without "cmd.exe /k" preceding it which open a second window which will not close.
    You can create a restore point without "wmic" and "cmd.exe /k". See: Add Create Restore Point Context Menu in Windows 10
    Try to combine my script with yours.

    rdwray said:
    Got that to run with remove "Echo." which I have used in the past, but for some reason, it gets kicked out on my PC.
    Due to my poor English comprehension, I don't know what you mean by "kicked out".
      My Computer


 

Tutorial Categories

Delete System Restore Points 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 07:28.
Find Us




Windows 10 Forums