Export the specified sub keys and values into a file.

:: To export all sub keys and values of a specific key:
reg export <key_name> <path/to/file.reg>

:: To force overwriting of an existing file without prompt:
reg export <key_name> <path/to/file.reg> /y