Name
Registry Console Utility —
\windows\system32\reg.exe
Synopsis
A command-line utility to access and modify portions of the Windows Registry.
To Open
Command Prompt →
reg
Usage
regcommand[options]
Description
The Registry Console Utility performs all of the functions of the
Registry Editor, discussed later in chapter and in Chapter 8, but can be used from the command line. It
also does a few things Registry Editor can’t do,
such as making a duplicate of a registry key (via
copy, below). To use the Registry Console Utility,
type reg, followed by one of the following
commands and any applicable parameters:
-
querykeyname[/vvaluename| /ve] [/s] Displays the data stored in a Registry value, where
keynameis the full path of a registry key andvaluenameis the name of the value to query. Omit/vvaluenameto display list of all the values inkeynameor specify/veto query the(Default)value. Include/sto query all subkeys and values as well. Keyname can also include the name of a remote computer like this:query computer\keyname.-
addkeyname[/vvaluename| /ve] [/d data] [/t typ] [/s sep] [/f] Adds a new value. The
keyname,/v, and/veoptions are the same as withquery, above. The/doption assignsdatato the new value; if omitted, the new value will be empty. Use/tto specify the data type for the value; if omitted, a string value (REG_SZ) will be added. Use the /s option to specify a separator, used if you’re creating aREG_MULTI_SZvalue. If the value being added already ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access