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.
Select Start, type regedit.exe and press Enter. Approve the administrator prompt if one appears.
In Registry Editor, find and click the key or subkey you're about to change.
Select File > Export.
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.
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.