1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 14:02:08 +02:00
tldr/pages/windows/reg-query.md
2020-09-22 18:06:55 +01:00

24 lines
598 B
Markdown

# reg query
> Display the values of keys and sub keys in the registry.
> More information: <https://docs.microsoft.com/windows-server/administration/windows-commands/reg-query>.
- Display all values of a key:
`reg query {{key_name}}`
- Display a specific value of a key:
`reg query {{key_name}} /v {{value}}`
- Display all values of a key and its sub keys:
`reg query {{key_name}} /s`
- Search for keys and values matching a specific pattern:
`reg query {{key_name}} /f "{{query_pattern}}"`
- Display a value of a key matching a specified data type:
`reg query {{key_name}} /t {{type}}`