FolderRisk: Caution
RegBack C:\Windows\System32\config\RegBack
Automatic backup folder for registry hives; since Windows 10 version 1803 it is empty or holds only 0 KB files by default.
What it’s for
RegBack used to receive a backup copy of the main hives (SYSTEM, SOFTWARE, SAM, SECURITY, DEFAULT), made by a scheduled task. It let you repair the registry by hand from the Windows Recovery Environment (WinRE) when a boot failed on a damaged hive. On a recent Windows, this folder no longer plays that role.
What it contains
- Historically, copies of the hives in the parent
configfolder, refreshed periodically. - Since Windows 10 version 1803, automatic backup is off by default to reduce disk footprint: the folder is empty or holds only 0 KB files.
- The
RegIdleBackupscheduled task (inMicrosoft\Windows\Registry) still exists. It only makes a copy if theEnablePeriodicBackupvalue is 1 underHKLM\System\CurrentControlSet\Control\Session Manager\Configuration Manager.
Risks and best practices
- Do not count on this folder as a backup. Use a system state backup or restore points.
- If you turn the backup back on, only restore a hive from
RegBackfrom WinRE, and replace the whole consistent set of hives rather than a single one. - Do not copy old files over current hives: drivers and services would no longer match.
Useful commands
# 0 KB files mean the automatic backup is disabledGet-ChildItem -Force "$env:windir\System32\config\RegBack" | Select-Object Name, Length, LastWriteTime
# Value that re-enables periodic backup (absent = default behavior)Get-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Session Manager\Configuration Manager' -Name EnablePeriodicBackup -ErrorAction SilentlyContinue
# Re-enable the backup (as administrator, effective after restart); test with -WhatIf firstNew-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Session Manager\Configuration Manager' -Name EnablePeriodicBackup -Value 1 -PropertyType DWord -WhatIf
# Run the backup task on demandStart-ScheduledTask -TaskPath '\Microsoft\Windows\Registry\' -TaskName RegIdleBackup