Add Create Restore Point Context Menu in Windows 10  

Page 6 of 7 FirstFirst ... 4567 LastLast

  1. Posts : 7,451
    Windows 10 Home 20H2
       #50

    Try the following:

    1. Click here to download my .bat file.
    2. Double-click to run it.
    3. On completion, find the task "Create_a_restore_point" in Task Scheduler.
    4. Right-click on the task name-->"Properties"-->"Actions"-->"Edit". Replace the file path with the following one:
    Cirus said:
    C:\Windows\System32\runas.exe /user:XXX\Administrator /savecred "C:\ProgramData\_SERVICE\Create Restore Point\Create Restore Point.cmd"
      My Computer


  2. Posts : 25
    Multiple
       #51

    @Matthew Wai
    Any chance to do it without creating a task in Task Scheduler?
    Last edited by Cirus; 02 Mar 2020 at 06:22.
      My Computer


  3. Posts : 7,451
    Windows 10 Home 20H2
       #52

    Cirus said:
    @Matthew Wai
    Any chance to do it without creating a task in Task Scheduler?
    1. Click here to download "For_Cirus.bat", which will not create a task.
    2. In the .bat file, find this line: Set "【Path】=XXXXXXXXXXXXXXXXXXX"
    3. Replace XXXXXXXXXXXXXXXXXXX with the following:
    Cirus said:
    C:\Windows\System32\runas.exe /user:XXX\Administrator /savecred "C:\ProgramData\_SERVICE\Create Restore Point\Create Restore Point.cmd"
    Be careful not to delete the quotation mark after XXXXXXXXXXXXXXXXXXX.
      My Computer


  4. Posts : 25
    Multiple
       #53

    Matthew Wai said:
    1. Click here to download "For_Cirus.bat", which will not create a task.
    2. In the .bat file, find this line: Set "【Path】=XXXXXXXXXXXXXXXXXXX"
    3. Replace XXXXXXXXXXXXXXXXXXX with the following:

    Be careful not to delete the quotation mark after XXXXXXXXXXXXXXXXXXX.
    Did I catch you correctly?
    Set "【Path】=C:\Windows\System32\runas.exe /user:XXX\Administrator /savecred "C:\ProgramData\_SERVICE\Create Restore Point\Create Restore Point.cmd""

    I'm asking because your bat created the context menu but when I launch it I get the following error message:Add Create Restore Point Context Menu in Windows 10-untitled.png
      My Computer


  5. Posts : 4,523
    Windows 11 Pro 64-bit
       #54

    @Brink i hope this batch script is helpful.

    With this batch script you can add or remove create restore point context menu in Windows 10.

    Code:
    :: Add Create Restore Point Context Menu in Windows 10
    
    @Echo Off 
    
    net sess>nul 2>&1||(powershell start cmd -ArgumentList """/c %~0""" -verb Runas & exit)
    
    :choice
    
    Cls & Mode CON  LINES=11 COLS=70 & Color 0E & Title Created By FreeBooter
    Echo.
    Echo.
    Echo.
    Echo.
    Echo            Add "Create Restore Point" to Context Menu (A)?   
    Echo.       
    Echo            Remove "Create Restore Point" from Context Menu (R)?
    Echo.
    
    
    Set /p input= RESPONSE: 
    
    If /i  Not %input%==A (Goto :_Ex) Else (Goto :_Add) 
    
    :_Ex
    If /i Not %input%==R (Goto :choice) Else (Goto :_Remove)
    
    
    
    :_Add
    
    Reg.exe add "HKCR\Directory\Background\shell\Create Restore Point" /v "HasLUAShield" /t REG_SZ /d "" /f
    Reg.exe add "HKCR\Directory\Background\shell\Create Restore Point" /v "Icon" /t REG_SZ /d "SystemPropertiesProtection.exe" /f
    Reg.exe add "HKCR\Directory\Background\shell\Create Restore Point\command" /ve /t REG_SZ /d "PowerShell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/s,/c, PowerShell Checkpoint-Computer -Description \"Manual\" -RestorePointType \"MODIFY_SETTINGS\"' -Verb runAs\"" /f
    Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v "SystemRestorePointCreationFrequency" /t REG_DWORD /d "0" /f
    
    Cls & Mode CON  LINES=11 COLS=65 & Color 0E & Title Created By FreeBooter
    Echo.
    Echo.
    Echo.
    Echo.
    Echo           Adding "Create Restore Point" to Context Menu
    Echo.
    Echo.
    Echo. 
    Ping -n 6 localhost >Nul
    Exit
    
    
    
    
    
    :_Remove
    
    Reg.exe delete "HKCR\Directory\Background\shell\Create Restore Point" /f
    
    Cls & Mode CON  LINES=11 COLS=65 & Color 0E & Title Created By FreeBooter
    Echo.
    Echo.
    Echo.
    Echo.
    Echo         Removing "Create Restore Point" from Context Menu
    Echo.
    Echo.
    Echo. 
    Ping -n 6 localhost >Nul
      My Computer


  6. Posts : 61,495
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #55
      My Computers


  7. Posts : 4,523
    Windows 11 Pro 64-bit
       #56

    Thank you!
      My Computer


  8. Posts : 7,451
    Windows 10 Home 20H2
       #57

    Cirus said:
    Set "【Path】=C:\Windows\System32\runas.exe /user:XXX\Administrator /savecred "C:\ProgramData\_SERVICE\Create Restore Point\Create Restore Point.cmd""
    Do a test with the following:
    Set "【Path】="%WinDir%\Notepad.exe" /A "%WinDir%\WindowsUpdate.log""
    See whether the .log file will be opened.
      My Computer


  9. Posts : 25
    Multiple
       #58

    Matthew Wai said:
    Do a test with the following:
    Set "【Path】="%WinDir%\Notepad.exe" /A "%WinDir%\WindowsUpdate.log""
    See whether the .log file will be opened.
    Yes
    Add Create Restore Point Context Menu in Windows 10-untitled.png
    What did that command do?

    - - - Updated - - -

    Matthew Wai said:
    1. Click here to download "For_Cirus.bat", which will not create a task.
    2. In the .bat file, find this line: Set "【Path】=XXXXXXXXXXXXXXXXXXX"
    3. Replace XXXXXXXXXXXXXXXXXXX with the following:

    Be careful not to delete the quotation mark after XXXXXXXXXXXXXXXXXXX.
    @Matthew Wai
    I here attach the portion of registry handled by your .bat HKEY_CLASSES_ROOT-Directory-background-shell-Create a restore point.reg
      My Computer


  10. Posts : 7,451
    Windows 10 Home 20H2
       #59

    Cirus said:
    What did that command do?
    Try the following:

    Code:
    Set "【Path】="runas.exe" /user:XXX\Administrator /savecred "C:\ProgramData\_SERVICE\Create Restore Point\Create Restore Point.cmd""
    It should use "runas.exe" to run "C:\ProgramData\_SERVICE\Create Restore Point\Create Restore Point.cmd". Quotation marks are needed in "runas.exe".
      My Computer


 

Tutorial Categories

Add Create Restore Point Context Menu 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 17:56.
Find Us




Windows 10 Forums