Windows - Manage the registry using the command prompt
The registry can be edited via the command prompt using the REG command
This command is useful when your computer is infected by a virus preventing access to the registry or when you want to create a batch that modifies the registry.
Open the command prompt
To get more information about the REG
command, just add /? after the command.
Examples of use:
- REG /?
- REG ADD /?
- REG COPY /?
Adding items to the registry
Add a key
REG ADD [location of the key][name of the new key]
Add a value
Add default value
REG ADD [location of the new value]/VE/D [data value]
Deleting items from the registry
Delete a key
Removes the selected key, subkeys and values it contains.
Delete a value
Delete the default value