Skip to content

How-ToOS

How to Back Up and Restore the Registry in Windows 11

How to back up the Windows 11 registry before you edit it: export a key with Registry Editor, use reg export from Terminal, or create a System Restore point, plus how to restore each backup if a tweak goes wrong.

By , Systems & Technical Editor

5 min read

How to Back Up and Restore the Registry in Windows 11

Plenty of PC fixes and tweaks end with "change this value in the registry". Before you touch anything there, make a backup you can put back. Microsoft's own warning is blunt: "Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system." This guide covers the three backup methods Microsoft documents and how to restore each one. It's based on Microsoft Support and Microsoft Learn documentation checked on 27 November 2026.

What you're actually backing up

Microsoft describes the registry as the database Windows "continually references during operation". It holds user profiles, installed applications, folder and icon settings, "what hardware exists on the system" and the ports in use. It's organised into root keys such as HKEY_LOCAL_MACHINE (HKLM) and HKEY_CURRENT_USER (HKCU), each containing keys, subkeys and values.

You have three sensible options:

Method

What it saves

Best for

Registry Editor > File > Export

One key and everything under it (or the whole registry) as a .reg file

A single tweak you've found online

reg export (Command Prompt or Terminal)

One key as a .reg file

Scripting, or backing up several keys quickly

System Restore point

System files, registry settings and installed programs

Bigger changes, driver installs, anything you're unsure about

Method 1: Export a key with Registry Editor

This is Microsoft's own manual method, and it's the one to use before most tweaks.

  1. Select Start, type regedit.exe and press Enter. Approve the administrator prompt if one appears.

  2. In Registry Editor, find and click the key or subkey you're about to change.

  3. Select File > Export.

  4. In the Export Registry File dialog box, choose where to save the backup and type a name in the File name field. Our tip: include the date and the tweak in the name, such as 2026-11-27-before-mouse-fix.reg, and save it somewhere outside the Windows folder.

  5. Select Save.

Our advice is to export only the key you're editing rather than the entire registry. A small file is quick to check and restore. Microsoft's advanced-users guidance also says to "export the keys in the registry that you plan to edit, or back up the whole registry" before editing.

Method 2: Use reg export from the command line

Windows 11 includes the Console Registry Tool (Reg.exe). Microsoft Learn documents the syntax as:

reg export [/y]

  • The key name must start with a valid root key: HKLM, HKCU, HKCR, HKU or HKCC. If the key name contains a space, put it in quotes.

  • The file must have a .reg extension.

  • /y overwrites an existing file with the same name without asking.

  • The command returns 0 for success and 1 for failure, which is handy in a batch file.

Microsoft's own example exports a key called MyApp:

reg export HKLM\Software\MyCo\MyApp AppBkUp.reg

Method 3: Create a System Restore point

A .reg export only covers the keys you chose. For a driver install, a "debloat" script or a tweak that touches many keys, a restore point is the better safety net. Microsoft says that when you apply a restore point, System Restore "reverts the system files, registry settings, and installed programs" to how they were when the point was made, without affecting your personal files. Restore points can be created automatically during events such as software installs and updates, or manually. Our guide on how to use System Restore in Windows 11 shows how to switch on System Protection and make one by hand.

What about the whole registry? Microsoft's advanced-users article says that to back up the whole registry you back up the system state, which includes the registry, the COM+ Class Registration Database and your boot files. For most home PCs, our view is that a full image backup does that job better; see our best free backup software roundup.

How to restore a registry backup

From Registry Editor: open regedit.exe, select File > Import, browse to the backup in the Import Registry File dialog box, select it and click Open.

By double-clicking: Microsoft also says you can restore exported subkeys by double-clicking the Registration Entries (.reg) file you saved. Our advice: only ever do this with .reg files you made yourself or fully trust.

From the command line: use reg import AppBkUp.reg. Microsoft notes the file "must be created in advance by using reg export", and the command accepts /reg:32 or /reg:64 to target the 32-bit or 64-bit registry view.

From a restore point: run rstrui.exe (press Windows + R, type it and press Enter), or choose Recovery > Open System Restore in Control Panel, pick a restore point and select Next then Finish. Windows restarts automatically. If Windows won't start, the same option is under Troubleshoot > Advanced options > System Restore in the Windows Recovery Environment. Microsoft notes you'll need your BitLocker key there if the device is encrypted. Our guide on how to create a recovery drive is worth following before you need it.

Mistakes to avoid

  • Don't skip the backup because the tweak looks small. Microsoft says a bad edit could, in the worst case, mean reinstalling Windows.

  • Don't use "registry cleaner" apps as a backup plan. In our view they add risk rather than removing it; Windows' own tools above are free and documented.

  • Don't edit driver keys when a setting exists. If you're trying to stop Windows replacing drivers, for example, use the supported route in our guide on how to stop Windows Update installing drivers.

  • Keep the .reg file until you're sure. Leave it for a few days of normal use before deleting it.

Our verdict

Before any registry edit, export the key you're changing with File > Export in Registry Editor, or use reg export from Terminal. For bigger changes such as driver installs or scripts that touch many keys, create a System Restore point first, because it rolls back system files, registry settings and programs together. Restore with File > Import, reg import or System Restore, and keep a recovery drive ready in case Windows won't start.

The bottom line

Before any registry edit, export the key you're changing with File > Export in Registry Editor, or use reg export from Terminal. For bigger changes such as driver installs or scripts that touch many keys, create a System Restore point first, because it rolls back system files, registry settings and programs together. Restore with File > Import, reg import or System Restore, and keep a recovery drive ready in case Windows won't start.

Sources

  1. 01Microsoft Support: How to back up and restore the registry in Windows
  2. 02Microsoft Learn: Windows registry information for advanced users
  3. 03Microsoft Learn: reg export
  4. 04Microsoft Learn: reg import
  5. 05Microsoft Support: System Restore

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Install PyTorch for an Intel Arc GPU on Windows 11

How-To

How to Install PyTorch for an Intel Arc GPU on Windows 11

Intel Arc graphics cards and Core Ultra laptops run PyTorch through its XPU backend rather than CUDA. We show how to install it on Windows 11: update the Intel driver, set up Python and a virtual environment, install from PyTorch's XPU address and check torch.xpu sees your GPU.

Marcus Thorne4 min

Arc Pro B50 vs Arc Pro B60 for Local AI: 16GB or 24GB?

Versus

Arc Pro B50 vs Arc Pro B60 for Local AI: 16GB or 24GB?

Intel's Arc Pro B50 and Arc Pro B60 are both Xe2-generation workstation cards popular for local AI, but one is a 70W, 16GB card that needs no power cable and the other has 24GB and about twice the memory bandwidth. We compare memory, model fit, power, size and software support.

Callum Reid6 min

Best Free Encryption Software for Windows in 2026

Best Picks

Best Free Encryption Software for Windows in 2026

The best free encryption software for Windows in 2026: Device Encryption for Windows 11 Home, BitLocker and BitLocker To Go for Pro, VeraCrypt for containers and cross-platform drives, Cryptomator for cloud folders and 7-Zip for sending encrypted files.

Hannah Vance7 min