Returns a list of the next tier of subkeys and entries located under a specified subkey in the registry.
To display the value of the name value Version in the HKLM\Software\Microsoft\ResKit key, type:
REG QUERY HKLM\Software\Microsoft\ResKit /v Version
To display all subkeys and values under the key HKLM\Software\Microsoft\ResKit\Nt\Setup on remote machine ABC, type:
REG QUERY \\ABC\HKLM\Software\Microsoft\ResKit\Nt\Setup /s
To display all the subkeys and values of type REG_MULTI_SZ using "#" as the separator, type:
REG QUERY HKLM\Software\Microsoft\ResKit\Nt\Setup /se #
To display the key, value and data for exact and case sensitive matches of "SYSTEM" under the HKLM root of data type REG_SZ, type:
REG QUERY HKLM /f SYSTEM /t REG_SZ /c /e
To display the key, value and data for matches of "0F" in data under the HKCU root key of data type REG_BINARY.
REG QUERY HKCU /f 0F /d /t REG_BINARY
TO display the value and data for value names of null (Default) under HKLM\SOFTWARE, type:
REG QUERY HKLM\SOFTWARE /ve