reg query
Returns a list of the next tier of subkeys and entries that are located under a specified subkey in the registry. Windows commands reference
On Windows
Windows
reg query <keyname> [{/v <valuename> | /ve}] [/s] [/se <separator>] [/f <data>] [{/k | /d}] [/c] [/e] [/t <Type>] [/z] [/reg:32] [/reg:64]reg query HKLM\Software\Microsoft\ResKit /v Versionreg query \\ABC\HKLM\Software\Microsoft\ResKit\Nt\Setup /sreg query HKLM\Software\Microsoft\ResKit\Nt\Setup /se #reg query HKLM /f SYSTEM /t REG_SZ /c /ereg query HKCU /f 0F /d /t REG_BINARYreg query HKLM\SOFTWARE\Microsoft /s /f asp.netreg query HKLM\SOFTWARE\Microsoft /s /f asp.net /kreg query HKLM\SOFTWARE /ve
Show 15 options
<keyname>Specifies the full path of the subkey. To specify a remote computer, include the computer name (in the format \<computername>\) as part of the keyname. Omitting \<computername>\ causes the operation to default to the local computer. The keyname must include a valid root key. Valid root keys for the local computer are: HKLM, HKCU, HKCR, HKU, and HKCC. If a remote computer is specified, valid root keys are: HKLM and HKU. If the registry key name contains a space, enclose the key name in quotes./v <valuename>Specifies the registry value name that is to be queried. If omitted, all value names for keyname are returned. Valuename for this parameter is optional if the /f option is also used./veRuns a query for value names that are empty./sSpecifies to query all subkeys and value names recursively./se <separator>Specifies the single value separator to search for in the value name type REG_MULTI_SZ. If separator isn't specified, \0 is used./f <data>Specifies the data or pattern to search for. Use double quotes if a string contains spaces. If not specified, a wildcard (*) is used as the search pattern./kSpecifies to search in key names only. Must be used with /f./dSpecifies to search in data only./cSpecifies that the query is case sensitive. By default, queries are not case sensitive./eSpecifies to return only exact matches. By default, all the matches are returned./t <Type>Specifies registry types to search. Valid types are: REG_SZ, REG_MULTI_SZ, REG_EXPAND_SZ, REG_DWORD, REG_BINARY, REG_NONE. If not specified, all types are searched./zSpecifies to include the numeric equivalent for the registry type in search results./reg:32Specifies the key should be accessed using the 32-bit registry view./reg:64Specifies the key should be accessed using the 64-bit registry view./?Displays help at the command prompt.