automatic system restore point creation definitive solution without programming

automatic system restore point creation definitive solution without programming

automatic system restore point creation definitive solution without programming

System restore is such a great tool of Windows that when your system is corrupted, it can restore all Windows files to their previous state and fix the problem. Moreover, personal files are not affected. Today I will show you how to create an automatic system restore point every day. For this process, first Windows Defender must not be turned off. You search for it by typing gpedit.msc in the start menu. Enter the result. – From the computer configuration submenu, enter the submenus as Administrative Templates>Windows Components>Windows Defender Antivirus>Scanning. – Double-click Create system restore point and mark it as “Enabled”. Click Apply and press OK. That’s it. The system will automatically create a system restore point at certain times every day.

1.For this process, Windows Defender must not be turned off first.
2.You search for it by typing gpedit.msc in the Start menu. Enter the result.
3. From the Computer configuration submenu, enter the submenus Administrative Templates>Windows Components>Windows Defender Antivirus>Scanning.

4. Double-click Create system restore point and mark it as “Enabled”. Click Apply and press OK. This much. The system will automatically create a system restore point at certain times every day.

Setting up automatic system restore point creation is a valuable practice to ensure that your computer can revert to a previous state in case of issues, such as software conflicts, malware infections, or accidental changes to system settings. Here’s a detailed guide on how to configure this feature on a Windows operating system:

Setting Up Automatic System Restore Point Creation in Windows

1. Open System Properties

  • Shortcut Method: Press keys together to open the System window. Alternatively, you can right-click on the or icon on the desktop or in File Explorer and select .Win + Pause/BreakThis PCComputerProperties
  • Access via Control Panel: Go to > > .Control PanelSystem and SecuritySystem

2. Navigate to System Protection Settings

  • In the System window, click on located on the left sidebar. This will open the System Properties dialog box, specifically the System Protection tab.System protection

3. Select the System Drive

  • Under the System Protection tab, you will see a list of available drives. Select the drive for which you want to create restore points automatically (typically, this is the C: drive).
  • Click on .Configure

4. Enable System Protection

  • In the Configuration window, ensure that is selected. Adjust the Max Usage slider to allocate the amount of disk space you want to reserve for restore points. Ensure that there is enough space for the restore points, but avoid allocating too much space to prevent data fragmentation.Turn on system protection

5. Configure Automatic Restore Points

  • Click on to access more detailed options. Here, you can set the frequency of restore point creation.Settings
  • Select the option and choose your preferred interval (e.g., Daily, Weekly, or Monthly). You can also specify the exact time of day for the restore point creation.Create a restore point every

6. Apply and Confirm Changes

  • Click to save the settings and then to close all dialog boxes. Your system is now configured to create restore points automatically based on the schedule you specified.ApplyOK

7. Verify Configuration

  • To ensure everything is set up correctly, you can manually create a restore point by clicking in the System Protection tab. Give it a descriptive name and confirm. This will serve as a manual check to ensure the system is functioning correctly.Create

Additional Tips

  • Monitor Disk Space: Regularly check the disk space allocated for restore points to ensure it does not fill up too quickly. You can adjust the Max Usage slider if necessary.
  • Update Restore Points: Windows usually creates restore points automatically before significant system changes, such as Windows updates or driver installations. You can also create restore points manually before making major changes to your system.
  • Use Disk Cleanup: Periodically use the Disk Cleanup tool to delete old restore points and free up space, but keep at least one or two restore points to ensure you have fallback options.

By following these steps, you can ensure that your system is well-protected against unexpected issues, making troubleshooting and recovery much simpler and faster. Remember to periodically check and update your restore point settings to maintain optimal system stability and security.

Schedule Automatic Restore Point Creation

  1. Open Task Scheduler: Click on the Start menu, type “Task Scheduler,” and open it.
  2. Create a New Task:
    • In Task Scheduler, click on “Create Basic Task” on the right-hand side.
    • Name your task (e.g., “Automatic Restore Point Creation”) and add a description if desired. Click “Next.”
  3. Set Trigger: Choose how often you want the task to run (e.g., daily, weekly). Click “Next.”
  4. Set Action: Select “Start a Program” and click “Next.”
    • In the “Program/script” field, enter .powershell.exe
    • In the “Add arguments” field, enter the following command to create a restore point:

vbnet

Code :Invoke-WmiMethod -Namespace root/default -Class SystemRestore -Name CreateRestorePoint `
-ArgumentList "Automatic Restore Point", 100, 7
    • This command creates a restore point named “Automatic Restore Point” with a description and type.
  1. Finish: Review your settings and click “Finish” to schedule the task.

Step 5: Verify Automatic System Restore Point Creation

  1. Check Task Scheduler: Go back to Task Scheduler and ensure your task is listed under “Task Scheduler Library.”
  2. Monitor System Restore Points: Periodically check the “System Protection” tab in System Properties to ensure that new restore points are being created as scheduled.

Step 6 :PowerShell code to create an automatic system restore point

powershell code

# PowerShell script to create an automatic system restore point
$description = "Automatic Restore Point" # Specify the description for the restore point
# Check if System Restore is enabled on the system drive
if ((Get-ComputerRestorePoint).Count -eq 0) {
Write-Host “System Restore is not enabled. Enabling now…”
Enable-ComputerRestore -Drive “C:\” # Specify the drive where system restore should be enabled
}

# Create a restore point
Checkpoint-Computer -Description $description -RestorePointType “MODIFY_SETTINGS”

Explanation:

  1. $description = "Automatic Restore Point": You can customize the description to reflect the purpose or timing of the restore point.
  2. Get-ComputerRestorePoint: Checks if there are existing restore points. If none are found (), it proceeds to enable system restore.Count -eq 0
  3. Enable-ComputerRestore -Drive "C:\": Ensures that system restore is enabled on the specified drive ( in this example).C:\
  4. Checkpoint-Computer -Description $description -RestorePointType "MODIFY_SETTINGS": Creates a new restore point with the specified description and type ( indicates changes to system settings).MODIFY_SETTINGS

Usage:

  • Run this script in PowerShell with administrator privileges () to create an automatic system restore point on the specified drive ( in this example).Run as administratorC:\
  • You can modify and the drive path () as per your requirements.$description-Drive "C:\"

This script provides a straightforward way to automate the creation of system restore points using PowerShell.

PowerShell code to create an automatic system restore point:

powershell

Code
# Define variables
$description = "Automatic Restore Point" # Description for the restore point
$eventType = "Modify_Settings" # Type of event triggering the restore point creation
# Create restore point
Invoke-CimMethod -Namespace root/Microsoft/Windows/SystemRestore -ClassName PS_SystemRestorePoint -MethodName CreateRestorePoint -Arguments @{
Description = $description
EventType = $eventType
RestorePointType = 0 # 0 means system change
}

Explanation:

  • Description: This variable () holds the text description of the restore point. You can modify to suit your preference.$description"Automatic Restore Point"
  • EventType: This variable () specifies the type of event that triggers the creation of the restore point. indicates changes in system settings.$eventType"Modify_Settings"
  • Invoke-CimMethod: This cmdlet invokes a Common Information Model (CIM) method, specifically , which is used to create a restore point.CreateRestorePoint

How to Use:

  1. Open PowerShell as an administrator.
  2. Copy and paste the above code into the PowerShell console.
  3. Press Enter to execute the command.

This PowerShell script will create a system restore point with the specified description () and event type (). Adjust these variables as needed for your specific requirements.$description$eventType

Conclusion

By following these steps, you ensure that your Windows system regularly creates restore points, providing a safety net in case of system instability or errors. Automatic system restore point creation helps maintain system reliability and simplifies recovery processes.

 

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply

    Your email address will not be published. Required fields are marked *