Windows 10: Export and Import Registry Keys in Windows

Discus and support Export and Import Registry Keys in Windows in Windows 10 Tutorials to solve the problem; How to: Export and Import Registry Keys in Windows How to Export and Import Registry Keys in Windows System configuration information is stored... Discussion in 'Windows 10 Tutorials' started by Brink, May 11, 2018.

  1. Brink Win User

    Export and Import Registry Keys in Windows


    How to: Export and Import Registry Keys in Windows

    How to Export and Import Registry Keys in Windows


    System configuration information is stored centrally in a hierarchical database called the registry. You can use Registry Editor to add and edit registry keys and values, restore the registry from a backup or to default values, and to import or export keys for reference or backup.

    For more in-depth details about Registry Editor (regedit), see:
    This tutorial will show you how to import and export registry keys using a .reg file for Registry Editor in Windows 7, Windows 8, and Windows 10.

    *note You must be signed in as an administrator to import and export keys from the following registry hives (group of keys) below. The HKEY_CURRENT_USER hive only affects the current user, and does not require being an administrator.
    • HKEY_CLASSES_ROOT
    • HKEY_LOCAL_MACHINE
    • HKEY_USERS
    • HKEY_CURRENT_CONFIG
    CONTENTS:

    EXAMPLE: Registry Editor

    Export and Import Registry Keys in Windows [​IMG]







    OPTION ONE [/i] Export Registry Key in Registry Editor
    1. Press the Win+R keys to open Run, type regedit, and click/tap on OK to open Registry Editor.

    2. If prompted by UAC, click/tap on Yes to approve elevation.

    3. In the left pane of Registry Editor, navigate to and select the key you want to export. (see screenshot below)

    *note All subkeys of this selected key will also be included in the export.

    Export and Import Registry Keys in Windows [​IMG]

    4. Perform one of the following actions below to export the selected key to a .reg file. (see screenshots below)
    A) Right click or press and hold on the key, and click/tap on Export.

    OR

    B) Click/tap on File (menu bar), and click/tap on Export.


    Export and Import Registry Keys in Windows [​IMG]

    Export and Import Registry Keys in Windows [​IMG]

    5. Navigate to the location for where you want to save the export, type a name you want for the .reg file, and click/tap on Save. (see screenshot below)

    Export and Import Registry Keys in Windows [​IMG]

    6. When finished exporting registry keys, you can close Registry Editor if you like.





    OPTION TWO [/i] Export Registry Key in Command Prompt
    *note To see more usage details for the reg export command, see: reg export | Microsoft Docs
    1. Open a elevated command prompt depending on the required rights of the key you want to export.

    2. Type the command below into the command prompt, and press Enter. (see screenshot below)
    *Arrow Reg export "full path of key" "full path to save .reg file name"

    *note All subkeys of this key will also be included in the export.

    Substitute full path of key in the command below with the actual full path of the key (ex:"HKEY_CURRENT_USER\Printers") you want to export from Registry Editor.

    Substitute full path to save .reg file name in the command below with the actual full path of the location you want to save the .reg file including the name you want for the .reg file with extension. For example: "%UserProfile%\Desktop\Printers.reg"

    For example: Reg export "HKEY_CURRENT_USER\Printers" "%UserProfile%\Desktop\Printers.reg"



    Export and Import Registry Keys in Windows [​IMG]

    3. You can now close the command prompt if you like.





    OPTION THREE [/i] Import Registry Key using REG file
    *Warning When you import (merge) a .reg file, it will overwrite and replace the current key(s) and data value(s) in your registry with the contents of the .reg file.

    It is highly recommend that you system restore if needed (ex: caused issue) afterwards.

    1. Open File Explorer (Win+E), and navigate to the location of the .reg file you want to import.

    2. Perform one of the following actions below to import (merge) the .reg file. (see screenshot below)
    A) Double click/tap on the .reg file

    OR

    B) Right click or press and hold on the .reg file, and click/tap on Merge.


    Export and Import Registry Keys in Windows [​IMG]

    3. If prompted by UAC, click/tap on Yes to approve elevation. (see screenshot below)

    Export and Import Registry Keys in Windows [​IMG]

    4. Click/tap on Yes to confirm. (see screenshot below)

    Export and Import Registry Keys in Windows [​IMG]

    5. Click/tap on OK. (see screenshot below)

    Export and Import Registry Keys in Windows [​IMG]






    OPTION FOUR [/i] Import Registry Key in Registry Editor
    *Warning When you import (merge) a .reg file, it will overwrite and replace the current key(s) and data value(s) in your registry with the contents of the .reg file.

    It is highly recommend that you system restore if needed (ex: caused issue) afterwards.

    1. Press the Win+R keys to open Run, type regedit, and click/tap on OK to open Registry Editor.

    2. If prompted by UAC, click/tap on Yes to approve elevation.

    3. Click/tap on File (menu bar), and click/tap on Import. (see screenshot below)

    Export and Import Registry Keys in Windows [​IMG]

    4. Navigate to and select the .reg file you want to import, and click/tap on Open. (see screenshot below)

    Export and Import Registry Keys in Windows [​IMG]

    5. Click/tap on OK. (see screenshot below)

    Export and Import Registry Keys in Windows [​IMG]

    6. When finished importing .reg files, you can close Registry Editor if you like.





    OPTION FIVE [/i] Export Registry Key in Command Prompt
    *note To see more usage details for the reg import command, see: reg import | Microsoft Docs

    *Warning When you import (merge) a .reg file, it will overwrite and replace the current key(s) and data value(s) in your registry with the contents of the .reg file.

    It is highly recommend that you system restore if needed (ex: caused issue) afterwards.

    1. Open a elevated command prompt depending on the required rights of the key(s) in the .reg file you want to import.

    2. Type the command below into the command prompt, and press Enter. (see screenshot below)
    *Arrow Reg import "full path of .reg file name"

    *note Substitute full path of .reg file name in the command below with the actual full path of the .reg file including its name and extension you want to import (merge) into your registry.

    For example: Reg import "C:\Users\Brink\Desktop\Printers.reg"



    Export and Import Registry Keys in Windows [​IMG]

    3. You can now close the command prompt if you like.

    That's it,
    Shawn


    Related Tutorials

    :)
     
    Brink, May 11, 2018
    #1
  2. Giclopa Win User

    Import or merge registry key not working


    Hi, here is my problem.

    I exported a key (ieshims) to document folder. I made corrections using Notepad++ to some paths and saved it. I imported the key back and everything went fine.

    The problem is that when I go back to look at my corrections in the registry, nothing is updated. The old key is shown.

    The reason I exported/imported the key is that regedit doesn't allow me to make correction of a path on the left side of the key i.e. paths.

    Would anyone tell me what could be my problem?
     
    Giclopa, Oct 27, 2019
    #2
  3. Import/Export Contacts


    Hi,

    Basically, I want to manually sync contacts back and forth, between my computer and my phone.

    Going from computer to phone, the easiest way for me has been exporting/backing up the computer's .vcf file, moving it to my phone, delete my phones current contact list, and then importing the .vcf file from the computer, which instantly results in an complete, updated list.

    However, going in the other direction is my problem.

    If I try to do the same in reverse, trying to import the .vcf file into the computer contacts, it wants to do it one contact at a time, instead of the full list all at once.

    I suppose they can be Imported/Exported thru gmail, but I would prefer doing it directly...phone contacts only, without importing gmail contacts

    Thanks
     
    kitpzyxmsir, Oct 27, 2019
    #3
  4. ruggb Win User

    Export and Import Registry Keys in Windows

    problem exporting/importing registry keys

    I am using Repetier-Host for 3D printing. Configs are stored in the registry. Some configs are lines of code that contain CR, LF characters. These entries are made by the program.


    Export and Import Registry Keys in Windows 5eb2dfcb-d1e3-4b7d-9d6e-fa08369003ad?upload=true.jpg


    If I look at the entry using Modify, copy the entry, save it to a txt file and look at the file with a hex editor I see CR, LF after each line of code

    M42 P4 S0 ; turn off BIG fan

    M42 P5 S0 ; turn off red LEDs

    M42 P6 S0 ; turn off green LEDs


    Export and Import Registry Keys in Windows c878c727-e63d-43e3-80c1-57da7df69f55?upload=true.jpg


    when I export the repetier key, the export adds a CR to each line of code.


    Export and Import Registry Keys in Windows 5b3f73d2-01e5-4dfa-b516-6663f2602851?upload=true.jpg


    If I import the reg file, it creates extra entries instead of the original single entry because of the extra 0D added.

    Therefore, I cannot backup my config and must recreate the whole thing.

    I believe at some point in the past I tried to remove the extra 0D s but because of the CF, LF in the data it still would not import properly.

    THIS has been a problem for a long time (as in b4 Windows 10) and so far no one has acknowledged it, or fixed it.
     
    ruggb, Oct 27, 2019
    #4
  5. Bypass UAC prompt when importing Registry keys

    Hi All,

    I am trying to import a number of registry keys silently to HKCU hive using the following command line:

    Regedit .exe /s "<path to the registry_key\regkey.reg"

    I am getting the following UAC prompt which I am trying to by-pass:

    any suggestions to import the registry keys silently?
     
    khanShehzad, Oct 27, 2019
    #5
  6. How do I delete registry files?

    type in regedit in the search box and press enter. Then from here on, DO NOT TOUCH ANYTHING UNLESS U KNOW WHAT UR DOING!! Go to Hkey_Local_Machine > Software > Then a list of program registry keys will pop up, delete anything that is uninstalled. Make sure u backup the keys unless something goes wrong. To backup, you do: Select a group of keys on the left pane > Right click > Export > name it "whatever.reg" > save it. To import the backup, click the reg file and click "merge"
     
    spearman914, Oct 27, 2019
    #6
Thema:

Export and Import Registry Keys in Windows

Loading...
  1. Export and Import Registry Keys in Windows - Similar Threads - Export Import Registry

  2. Cannot import registry key into regedit

    in Windows 10 Customization
    Cannot import registry key into regedit: When i try to import .reg file into regedit it says that file is not .reg file,any solutions? https://answers.microsoft.com/en-us/windows/forum/all/cannot-import-registry-key-into-regedit/2607614e-56de-4287-9b37-58f70d495277
  3. Exporting Registry

    in Windows 10 Installation and Upgrade
    Exporting Registry: When I export HKEY_CLASSES_ROOT with regedit it works, but whenI try to do it from a batch script with "reg export HKCR E:\RegistryBackup\Current\HKCR.reg /y" it fails. Why? Exporting the rest of the registry from the batch script works perfectly fine, just HKCR fails. Why?...
  4. Registry key information export

    in Windows 10 Customization
    Registry key information export: Hi, I'm looking to grab information from users' registry (one key in particular which states the VPN their using). I would then like to have this information exported so that they all are on one report with just the user name and that key information. What is the best way...
  5. problem exporting/importing registry keys

    in Windows 10 Installation and Upgrade
    problem exporting/importing registry keys: I am using Repetier-Host for 3D printing. Configs are stored in the registry. Some configs are lines of code that contain CR, LF characters. These entries are made by the program. [ATTACH] If I look at the entry using Modify, copy the entry, save it to a txt file and look...
  6. Importing and Exporting Keys from MBAM and AD

    in AntiVirus, Firewalls and System Security
    Importing and Exporting Keys from MBAM and AD: Hello All, I have been working on getting bitlocker deployed across the entire organization I work at and we have been running into issues where the recovery keys aren't centralized. Some of the recovery keys are stored in AD and some of them are stored on the MBAM SQL...
  7. Photos Import / Export

    in Windows 10 Customization
    Photos Import / Export: I am trying to import photos from my laptop to my android using Microsoft Launcher - Windows10 , the import/export icons are gone and cannot be found anywhere ??? Any suggestions ?...
  8. Exporting a printer profile from registry to import to another system

    in Windows 10 Drivers and Hardware
    Exporting a printer profile from registry to import to another system: Brink, this one is another issue that you may already have a solution for on hand. I "Think" I have done it like this before in windows? XP? Not recently for sure. This will be for Windows 10 X64. I need a way to export a specific printer profile such that it can be...
  9. Import or merge registry key not working

    in Windows 10 Support
    Import or merge registry key not working: Hi, here is my problem. I exported a key (ieshims) to document folder. I made corrections using Notepad++ to some paths and saved it. I imported the key back and everything went fine. The problem is that when I go back to look at my corrections in the registry,...
  10. Import/Export Contacts

    in Windows 10 Support
    Import/Export Contacts: Hi, Basically, I want to manually sync contacts back and forth, between my computer and my phone. Going from computer to phone, the easiest way for me has been exporting/backing up the computer's .vcf file, moving it to my phone, delete my phones current contact list,...