Enabling automatic system registry backup when restarting your Windows 11 computer can help protect your system from potential registry errors or corruption. In this tutorial, we will walk you through the steps to enable automatic backup of the system registry in Windows 11 using different methods, including a batch file.
Method 1: Using Registry Editor
Step 1: Open the Registry Editor
Press the Windows key + R on your keyboard to open the Run dialog box.
Type "regedit" in the text box and press Enter to open the Registry Editor.
Step 2: Navigate to the Registry Key
In the Registry Editor, navigate to the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Configuration Manager
Step 3: Create a new DWORD value
Right-click on the Configuration Manager folder and select "New" > "DWORD (32-bit) Value".
Name the new value "EnablePeriodicBackup" and set its value data to "1".
Step 4: Modify the AutoBackupInterval value
Right-click on an empty space in the right-hand pane and select "New" > "DWORD (32-bit) Value".
Name the new value "AutoBackupInterval" and set its value data to the number of minutes (in decimal) you want to set for the automatic backup interval. For example, if you want to backup every 24 hours, set the value data to "1440" (24 hours x 60 minutes per hour).
Step 5: Save your changes
Close the Registry Editor and restart your computer for the changes to take effect.
Method 2: Using Group Policy Editor
Step 1: Open Group Policy Editor
Press the Windows key + R on your keyboard to open the Run dialog box.
Type "gpedit.msc" in the text box and press Enter to open the Group Policy Editor.
Step 2: Navigate to the Group Policy Setting
In the Group Policy Editor, navigate to the following setting:
Computer Configuration\Administrative Templates\System\Backup
Step 3: Enable the "Turn on registry backup" policy
Double-click on the "Turn on registry backup" policy to edit it.
Select "Enabled" to enable the policy.
Step 4: Modify the "Backup interval (in minutes)" value
In the same policy window, modify the "Backup interval (in minutes)" value to the number of minutes you want to set for the automatic backup interval.
Step 5: Save your changes
Close the Group Policy Editor and restart your computer for the changes to take effect.
Method 3: Using a Batch File
Step 1: Open Notepad
Press the Windows key + R on your keyboard to open the Run dialog box.
Type "notepad" in the text box and press Enter to open Notepad.
Step 2: Enter the batch file commands
Copy and paste the following commands into the Notepad document:
@echo off
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Configuration Manager" /v EnablePeriodicBackup /t REG_DWORD /d 1 /f
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Configuration Manager" /v AutoBackupInterval /t REG_DWORD /d 1440 /f
pause
Note: You can modify the value data in the second "reg add" command to set your desired automatic backup interval.
Step 3: Save the file
Click on "File" > "Save As."
Choose a name for your batch file, such as "AutomaticRegistryBackup.bat."
Set the "Save as type" option to "All Files (.)" and save the file to your preferred location.
Step 4: Run the batch file as administrator
Right-click on the batch file