To insert multiple keys into a registry folder (e.g. Computer\HKEY_CLASSES_ROOT\....\....
), I basically have to manually right click → New → Key for each key.
This can get annoying and redundant, especially at times when I need to insert more than 10 keys.
Is there a way to insert multiple keys into a registry folder using the default GUI?
Is there a cmd command to do that?
Using built in tools on Windows you have a few options.
regedit
GUI.Microsoft
regedit
provides import and export [export visible in your screenshot] options. When you export a key, it will appear in a .REG file. This is an example.example.reg
To import open
regedit
, use the menu and navigate File -> Import, then select the .REG file.reg
command line utility.The
reg
utility also provides import and export options. To perform the same steps as above, you would do something like.You can also write keys/values/data ad-hoc with
reg
.Use
gpmc.msc
to configure a Group Policy Registry Preference and deploy it as needed.In addition to jscott's response, powershell can natively manage the registry.