tldr/pages/windows/reg-flags.md

17 lines
501 B
Markdown
Raw Normal View History

2018-01-25 10:22:28 +00:00
# reg flags
> Display or set flags on registry keys.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/reg-flags>.
2018-01-25 10:22:28 +00:00
- Display current flags for a specific key:
`reg flags {{key_name}} query`
- Set one or more flags, and unset unmentioned flags, for a specific key:
2018-01-25 10:22:28 +00:00
`reg flags {{key_name}} set {{flag_name1 flag_name2 ...}}`
2018-01-25 10:22:28 +00:00
- Set one or more flags for a specific key and its [s]ub keys:
2018-01-25 10:22:28 +00:00
`reg flags {{key_name}} set {{flag_name1 flag_name2 ...}} /s`