tldr/pages/windows/reg-export.md

13 lines
396 B
Markdown
Raw Normal View History

2018-01-28 12:16:13 +00:00
# reg export
> Export the specified subkeys and values to a `.reg` file.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/reg-export>.
2018-01-28 12:16:13 +00:00
- Export all subkeys and values of a specific key:
2018-01-28 12:16:13 +00:00
`reg export {{key_name}} {{path\to\file.reg}}`
2018-01-28 12:16:13 +00:00
- Forcefully (assuming [y]es) overwrite of an existing file:
2018-01-28 12:16:13 +00:00
`reg export {{key_name}} {{path\to\file.reg}} /y`