You can save registry keys from the
Windows Registry
on a system running a Microsoft Windows operating system by running the
Windows Registry editor,
regedit.exe, then navigating to the location of a key you wish to save,
right-clicking on it and selecting Export to create a .reg file.
You can then import the registry key on another Windows system by
double-clicking on that file on the system on which you wish to have the
same registry entry. You may need to be logged in under a administrator
account for keys that apply to all users, but you can still import the
contents of the .reg file without logging out of the currently logged in
user account, if that is not an account in the administrator group, by opening
a
command prompt window with administrator privileges. On a Windows 11
system, you can do so by typing command prompt
in the Search
field at the bottom of the screen. When you see the Command Prompt
app returned in the search results, click on it to open a command prompt window
without administator privileges or select "Run as administrator" to open
a command prompt window with administrator privileges. To add the registry
entries in a .reg file to the Windows Registry from the command prompt you
can issue the command reg /import filelocation\filename
where filelocation is the directory path to the file and filename
is the file's name. E.g., to import a registry file named
L5SoftwareGroup.reg located on the server server1 in the shared public folder
under the directory path \Software\Utilities
, I could enter the
command below.
C:\Windows\System32>reg import \\server1\public\Software\Utilities\L5SoftwareGroup.reg The operation completed successfully. C:\Windows\System32>
Related articles
-
Obtaining a command prompt in Windows 11
Date: February 18, 2017 -
Obtaining a command prompt in Windows 10
Date: February 18, 2017 -
Obtaining a Command Prompt on a Windows 8 System
Date: March 15, 2014