Software >> OS >> Windows >> Command Line >> How to export registry keys/values from a registry path



c:\> regedit /E <path><filename.reg> <regpath>

where <path><filename.reg> is the location of the output .reg file
      <regpath> is the registry path to export from

example

regedit /E C:\temp\test.reg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"