Update cheatsheets

This commit is contained in:
ivuorinen
2024-03-08 00:13:39 +00:00
parent 18990cb95e
commit a7b5b6f8a4
21 changed files with 130 additions and 54 deletions

View File

@@ -5,25 +5,37 @@ source: https://github.com/tldr-pages/tldr.git
---
# reg query
> Display the values of keys and sub keys in the registry.
> Display the values of keys and subkeys in the registry.
> More information: <https://learn.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:
- Display a specific [v]alue of a key:
`reg query {{key_name}} /v {{value}}`
- Display all values of a key and its sub keys:
- Display all values of a key and its [s]ubkeys:
`reg query {{key_name}} /s`
- Search for keys and values matching a specific pattern:
- Search [f]or 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:
- Display a value of a key matching a specified data [t]ype:
`reg query {{key_name}} /t {{type}}`
`reg query {{key_name}} /t REG_{{SZ|MULTI_SZ|EXPAND_SZ|DWORD|BINARY|NONE}}`
- Only search in [d]ata:
`reg query {{key_name}} /d`
- Only search in [k]ey names:
`reg query {{key_name}} /f /k`
- [c]ase-sensitively search for an [e]xact match:
`reg query {{key_name}} /c /e`