Create System Restore Point in Windows 10  

Page 4 of 8 FirstFirst ... 23456 ... LastLast

  1. Posts : 101
    Windows 10 Pro x64 22H2
       #30

    I used WMIC.exe many times, for a long time, with 1909 and previous builds. But I just updated to 2004, and it no longer works. Have the WMIC parameters changed, or how can I create a restore point from a .CMD file now?

    The command I used was:

    WMIC.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "%Name%", 100, %Type%

    Where "%Name%" and "%Type%" are of course variables such as "Installing something" and "0", respectively.

    What's strange is that it still SAYS it works, but it doesn't. Here's the output it shows when it does NOT really create a restore point:

    Code:
    Executing (SystemRestore)->CreateRestorePoint()Method execution successful.
    Out Parameters:
    instance of __PARAMETERS
    {
            ReturnValue = 0;
    };
      My Computer


  2. Posts : 7,606
    Windows 10 Home 20H2
       #31

    STRESSED said:
    how can I create a restore point from a .CMD file now?
    Use the following line of command in a CMD file:
    Code:
    Powershell.exe -ExecutionPolicy Bypass -Command "Checkpoint-Computer -Description """Created by %username%.""" -RestorePointType "MODIFY_SETTINGS""

    Reference: Add Create Restore Point Context Menu in Windows 10
      My Computer


  3. Posts : 101
    Windows 10 Pro x64 22H2
       #32

    That resulted in me getting the error:

    WARNING: A new system restore point cannot be created because one has already been created within the past 1440 minutes. The frequency of restore point creation can be changedby creating the DWORD value 'SystemRestorePointCreationFrequency' under the registry key 'HKLM\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore'. The value of thisregistry key indicates the necessary time interval (in minutes) between two restore point creation. The default value is 1440 minutes (24 hours).
    So I created "SystemRestorePointCreationFrequency" and set it to 240, but then I got the same error, but it said "...one has already been created within the past 240 minutes."

    The restore point it refers to was created automatically, not by me. So, I still need a way to create a restore point on demand.
      My Computer


  4. Posts : 68,842
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #33

    STRESSED said:
    So I created "SystemRestorePointCreationFrequency" and set it to 240, but then I got the same error, but it said "...one has already been created within the past 240 minutes."

    The restore point it refers to was created automatically, not by me. So, I still need a way to create a restore point on demand.
    Hello STRESSED,

    Change the SystemRestorePointCreationFrequency DWORD value to 0 (zero) instead for unlimited, and see how it will work for you afterwards.
      My Computers


  5. Posts : 101
    Windows 10 Pro x64 22H2
       #34

    That seems to work, thank you.

    Edit: I tried my old script again (which used wmic.exe, rather than PowerShell), and it works as it did before. So, the "SystemRestorePointCreationFrequency" registry value was the problem to begin with. I vaguely remember that I had created/set that value to 0 a long time ago. VERY annoying that Microsoft would delete it. I wonder what other customizations have also been deleted.
    Last edited by STRESSED; 09 Aug 2020 at 10:18.
      My Computer


  6. Posts : 68,842
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #35

    STRESSED said:
    That seems to work, thank you.
    You're most welcome.
      My Computers


  7. Posts : 15
    Windows 10
       #36

    Easy way to create a manual restore point?


    Hello, is there an easy quick way to create a manual restore point in Windows 10. Sorry, I don't know how to use Powershell. I can't make them the way I used to via the Control panel. Do you have a .reg file for it? Many thanks. 😊
      My Computer


  8. Posts : 68,842
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #37

    Acrylica said:
    Hello, is there an easy quick way to create a manual restore point in Windows 10. Sorry, I don't know how to use Powershell. I can't make them the way I used to via the Control panel. Do you have a .reg file for it? Many thanks.
    Hello Acrylica,

    If you like, you could use a shortcut or an added context menu from the tutorials below to make it easier to manually create a restore point on demand.

    Create System Restore Point shortcut in Windows 10

    Add Create Restore Point Context Menu in Windows 10
      My Computers


  9. Posts : 101
    Windows 10 Pro x64 22H2
       #38

    FWIW, I have long used the WMIC method:

    WMIC.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "%Name%", 100, %Type%

    Where "%Name%" is whatever name you wish to assign to the restore point, and "%Type%" is 0, 1, or 11, for "Install", "Uninstall", or "System", respectively. As far as I know, the type used doesn't really matter as it just determines what text will be displayed (along with the name of the restore point). There are other numbers accepted for type, but they all result in one of those three things (Install/Uninstall/System). OK, technically, if you use 2-5 or 8-9 for type, it will display "Unknown", which is probably going to be a bit confusing, if harmless.
      My Computer


  10. Posts : 15
    Windows 10
       #39

    Thanks so much for quick response. The Restore Point basic shortcut works great! 😊✔👍
      My Computer


 

Tutorial Categories

Create System Restore Point 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 15:43.
Find Us




Windows 10 Forums