The reg query command in Windows
The reg query command returns the following list of subkeys and entries that have been placed in a specified subkey in the registry.For a better understanding of how to use this command, see the example section below.
Syntax reg command command
reg query [/ v | / ve}] [/ s] [/ se] [/ f] [{/ k | / d}] [/ c] [/ e] [/ t] [/ z]
Parameter reg command command
Parameters
Describe
Specify the full path of the first subkey to be compared.To specify a remote computer, attach the computer name (in the format) as part of the KeyName parameter.In addition, the KeyName parameter must also include a valid root key.Valid root keys for local computers are: HKLM, HKCU, HKCR, HKU and HKCC.If the remote computer is specified, valid root keys will be HKLM and HKU.
/ v
Specify the registry value name to be queried.If this parameter is omitted, all value names for KeyName are returned.ValueName for this parameter is to become an option if the / f option is also used.
/ ve
Run a query for blank name values.
/S
Specify queries for all subkeys and recursive name values.
/ se
Specifies the separator of single values to search in the value named REG_MULTI_SZ.If the Separator is not specified, it will be used by default.
/ f
Specify data or patterns to search.Use quotation marks if a string contains spaces.If this parameter is not specified, the wildcard (*) will be used as the search pattern by default.
/ k
Specify search only in the names of the keys.
/ d
Specify search only in data.
/ c
Specify that the query will be case sensitive.By default, the query will not be case sensitive.
/ e
The order returns exact match results.By default, all matching results will be returned.
/ t
Specify the type of registry to search.The valid registry is: REG_SZ, REG_MULTI_SZ, REG_EXPAND_SZ, REG_DWORD, REG_BINARY, REG_NONE.If this parameter is not specified, all categories will be searched.
/ z
Specifying search results must include equivalent numeric data in the form of the registry.
/?
Show help at thecommand prompt.
Parameter reg command command
The following table lists the return values for the reg query command:
Value
Meaning
0
Success
first
Failure
Example of the reg query command
To display the value of the value named Version in the HKLMSoftwareMicrosoftResKit key, enter:
REG QUERY HKLMSoftwareMicrosoftResKit / v Version
To display all the subkeys and values in the HKLMSoftwareMicrosoftResKitNtSetup key on the ABC named remote computer, type:
REG QUERY ABCHKLMSoftwareMicrosoftResKitNtSetup / s
To display all the subkeys and values of the REG_MULTI_SZ registry format, in which, use # as a delimiter, enter:
REG QUERY HKLMSoftwareMicrosoftResKitNtSetup / se #
To display key, value, and data for SYSTEM's case sensitive and exact matches in the HKLM original value of the REG_SZ registry format, enter:
REG QUERY HKLM / f SYSTEM / t REG_SZ / c / e
To display the key, value and data that match the 0F in HKCU root key data of REG_BINARY data type, type:
REG QUERY HKCU / f 0F / d / t REG_BINARY
To display values and data for empty name values (default) in HKLMSOFTWARE, enter:
REG QUERY HKLMSOFTWARE / tick
See more:
- The qprocess command in Windows
- Qappsrv (query termserver) command in Windows
- The quser (query user) command in Windows
- The pubprn command and the pushprinterconnections command in Windows
You should read it
May be interested
- Openfiles commands in Windowsallows administrators to query, display, or disconnect files and folders that have been opened on the system. in addition, this command can also license or disable the maintain objects list system.
- Why use Microsoft Power Query for Excelif you're looking for a powerful new way to manage data, microsoft excel for windows now has software built in to help you with that, which is microsoft power query. this is a new tool that helps you take control of your spreadsheets more than ever.
- TOP command in SQLin sql, the top statement is used to retrieve n records or x percent records from a table.
- Fsutil fsinfo command in Windowsthe fsutil fsinfo command lists all drives, querying a drive type, query disk information, querying specific ntfs drive information, or file system statistics queries.
- Set up Query Criteria in Access 2016the query criteria (query criteria) are filter conditions that help you retrieve specific items from an access database, used when you want to limit results based on values in a field.
- Index (Mong) in MongoDBindex (index) supports the resolution of queries more efficiently. without an index, mongodb must scan through all a collection's document to select the documents that connect to the query command. this scan may be ineffective and requires mongodb to handle a large amount of data.
- What do you know about data queries?query is a way to search and compile data from one or more tables. query execution is like asking a detailed question about databases. when creating a query in access, you are defining specific search conditions to find exactly the data you need. in the quiz below, go with the network administrator to learn about this topic.
- Sub-commands in nslookup Windows command (Part 2)nslookup set all command, nslookup set class, nslookup set d2, alias nslookup set debug, nslookup set domain, nslookup set port, and nslookup set querytype in windows
- Sub-commands in the nslookup Windows command (Part 1)nslookup command exit, finger nslookup, nslookup help, nslookup ls, nslookup lserver, nslookup root, commandlooklook server, nslookup set in windows
- The Fsutil file in Windowsthe fsutil file finds a file by the user name (if disk quotas is enabled), the query allocates the scope to a file, sets the short name to a file, sets the valid data length of the file, sets the data zero for a file, or create a new file.