2018-01-28 12:16:13 +00:00
|
|
|
# reg export
|
|
|
|
|
2024-03-07 01:45:02 -03:00
|
|
|
> Export the specified subkeys and values to a `.reg` file.
|
2022-10-04 20:36:23 +05:30
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/reg-export>.
|
2018-01-28 12:16:13 +00:00
|
|
|
|
2024-03-07 01:45:02 -03:00
|
|
|
- Export all subkeys and values of a specific key:
|
2018-01-28 12:16:13 +00:00
|
|
|
|
2023-02-20 17:23:49 +10:00
|
|
|
`reg export {{key_name}} {{path\to\file.reg}}`
|
2018-01-28 12:16:13 +00:00
|
|
|
|
2024-03-07 01:45:02 -03:00
|
|
|
- Forcefully (assuming [y]es) overwrite of an existing file:
|
2018-01-28 12:16:13 +00:00
|
|
|
|
2023-02-20 17:23:49 +10:00
|
|
|
`reg export {{key_name}} {{path\to\file.reg}} /y`
|