How to back up the registry in Windows 11 and 10

Export the registry key you are about to change to a .reg file. If the change causes a problem, importing the file puts the old values back.

Time
2 minutes
Level
Easy
You need
An administrator account.

Windows 11 and 10

Steps written for Windows 11 and Windows 10 (the steps are the same).

  1. Open Registry Editor

    Press Windows key + R, type the command below and select OK. Select Yes when Windows asks for permission.

    regedit
  2. Select the key

    In the left pane, go to the key your guide will change, or paste its path into the address bar under the menu and press Enter.

  3. Export it

    Select File > Export.

  4. Save the backup

    Under Export range, keep Selected branch to save only that key, or choose All for the whole registry. Pick a folder, type a file name and select Save.

    Export Registry File dialog with the Export range options
    Export range decides whether one key or the whole registry is saved. Screenshot: Windows 11 26H2
  5. Restore it when needed

    In Registry Editor, select File > Import, choose the .reg file and select Open. You can also double-click the file and confirm.

    Import Registry File dialog
    Import writes the saved values back into the registry. Screenshot: Windows 11 26H2
Steps checked against Microsoft Support: How to back up and restore the registry in Windows; our screenshots (Windows 11 Pro 26H2) on Oct 3, 2026.

What an import does not undo

Importing a .reg file writes back the keys and values it contains. It does not delete keys or values that were added after the backup, so remove those by hand if your change created new ones. For a complete way back, also create a restore point before larger changes: Undo recent changes with System Restore.

Back up a key with a command

In Terminal opened as administrator (replace the key path and file name):

reg export "HKCU\Software\Example" "%USERPROFILE%\Desktop\example-backup.reg"

To restore it:

reg import "%USERPROFILE%\Desktop\example-backup.reg"

Used in 2 guides

Sources

  1. Microsoft Support: How to back up and restore the registry in Windows (read Oct 3, 2026)
  2. Microsoft Learn: reg export (read Oct 3, 2026)
  3. Microsoft Learn: reg import (read Oct 3, 2026)

Questions and experiences

Ask about this page: members and our editors answer. Reading is open; writing needs a free account.

0 comments

…

4,322 members already hereThey read, write, comment and vote. 0 verified · 31 joined this year

Cookies

We use essential cookies to run the platform. Analytics and marketing cookies are only turned on once you consent — you can change your choice at any time.