Manually copying registry keys would take forever and run a high risk of errors this is a better way.
So how do you import and export registry keys via command line?
One RootKey is HKCU or HKEY_Current_User.
The HKCU RootKey is used for prefs that apply specifically to the currently logged in user.
Each RootKey has a number of Subkeys, which in turn contain further SubKeys.
The full name for this registry key is HKCU\Printers\parameters.
The first step is to open Command Prompt.
To do so, initiate the Start Menu by pressing the Windows key, then pop in Command Prompt.
Dont just launch it though, youll need to start it with administrative privileges.
Start Command Prompt as an administrator.
Tip: If Command Prompt is not present on your rig, Windows PowerShell will work identically.
The help page for the Reg Export command.
The Rootkey is one of the five registry trees.
you might either write them out in full i.e.
HKEY_Current_User or in their shortened form i.e.
The SubKey is the path to the SubKey you want to be exported.
The FileName is the name of the file you want to export the registry keys to.
Starting your file path with %UserProfile% moves the output directory to your user directory, e.g.
%UserProfile%\Desktop will save a file to your desktop directory.
Tip: The file name should always end with the .reg file extension.
This is the recognised registry tweaks filetype.
The other command arguments are less important and entirely optional.
For example, /y automatically overwrites files with the same name, if they exist.
Now youre ready to write and launch the actual command.
The command should be reg export RootKey[\SubKey] FileName.
No quotes are necessary just jot down in the Keynames you need.
The operation completed successfully.
Now, you should have a reg file saved in the location you specified.
you might copy this to another computer to import it there.
The arguments for the import command are very similar to those for the export command.
The help page for the Reg Import command.
Tip: Before modifying the registry, you should create a proper system restore point.
Again, once the process completes successfully, the message The operation completed successfully will be printed.