You can also make changes to the registry with the command: reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Configuration Manager" /v EnablePeriodicBackup /t REG_DWORD /d 1 To start a task manually, run the command: schtasks /run /i /tn "Microsoft\Windows\Registry\RegIdleBackup" The next time you start automatic system maintenance (if you did not disable it), the copies of registry hives will also be created. Close the registry editor and restart the computer.Create a new DWORD parameter named EnablePeriodicBackup with the value 1.Go to the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager.You can enable automatic registry backups to the RegBack folder using the registry. It also allows you to extract old versions of registry hives from system recovery points (if they are enabled). What is interesting is that the task RegIdleBackup is active and successfully performed according to the schedule.Īccording to the comments of Microsoft employees, the automatic backup task was disabled to save space. The C:\Windows\System32\Config\RegBack directory is empty, or contains hive files with the size of 0 bytes.
#RESTART COMPUTER FROM COMMAND PROMPT WINDOWS 10 WINDOWS 10#
Starting from Wind(and in all newer Windows 10 builds: 18), the task of automatically creating registry backups by default doesn’t work like before. Restoring Registry Backup Task in Windand Higher In this case, you can replace the damaged registry files from the WinPE command prompt by booting your computer in the Windows 10 recovery environment or from Windows 10 installation media. However, you can use the registry recovery procedure when your Windows is not booting properly in normal mode. If your Windows 10 is turned on (online), you can’t replace the original registry files in the %windir%\System32\Config since they are locked by the operating system. You can run this task manually by right-clicking on the task name and select Run. In the Task Scheduler console, go to the section Task Scheduler Library > Microsoft > Windows > Registry.Īs you can see, the RegIdleBack task is active (Ready) and the last time completed successfully (Last Run Result: The operation completed successfully – 0x0). To find a task that is responsible for backing up the registry, open the Windows Scheduler ( Taskschd.msc). By default, a registry backup is created every 10 days or when installing system updates, drivers, or programs. Registry hives backup copies are created by a separate task RegIdleBack from the Automatic Maintenance subsystem.
These hives are stored in each directory with a user profile in the NTUSER.DAT and USRCLASS.DAT files and you need to make copies by yourself.Īccordingly, to restore the registry in Windows 10, you need to copy the files from the RegBack folder (where they are usually updated after updates that affect the registry) to the folder %windir%\System32\Config. Please note that the user’s registry hives are not backed up automatically. There are 5 files total in this location (in parentheses indicate the registry hive that is stored in a file): Each registry hive is stored in a separate file.