Jump to content

Any current code that works correctly to create a System Restore Point?


Go to solution Solved by ioa747,

Recommended Posts

Hello everyone and thanks for reading the message.

I'm trying to create a simple program, but I would first need to create a System Restore Point.

For example, I would like to have a simple button in a window, which when clicked on it, creates the restore point and tells me if it could be done or not.

The problem I find is that the code provided by Chimaera and Venom007 does not work for me on Windows 10/11.

I have read that you have to make a modification in the registry to create Restore Points in less than 24 hours, or that the Restore Point can only be created by rebooting the System, but I am not clear in the end what is really the solution that I have to use.

If anyone knows some code or can give me some information on what I would have to do to make Windows allow me to create that Restore Point, I would be grateful.

Thank you so much.

Link to comment
Share on other sites

1 hour ago, ioa747 said:
Local $sCmd = '"wmic.exe" /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "Restore Point Name", 100, 7'
    Local $iPID = Run($sCmd, "", @SW_HIDE)

 

Wooow!!!, Perfect!!! Great!!!

In Windows 10 the test that I have done seems to have worked correctly.

In Windows 11 you would have to try it.

I don't know if being in an Insider Canary version, perhaps the System creates Updates and Restore Points quite regularly, perhaps it is limited by that registry key that seems to not allow creating restore points in less than 24 hours.

Thank you very much for everything ioa747. You are a master ;)

I will update with information to serve other users.

Link to comment
Share on other sites

IIRC you need to have at least 5 or 10 posts before you can edit your posts.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...