Using the command Reg.exe
Reg.exe The command is a tool for editing the registry, although the editing tools are off the register, the reg command is always available but a little more difficult to control because you must type the command line the name of the keys to create or delete.
In this tutorial we will learn that the deletion because that's what we want. You use reg.exe tools for editing the registry is restricted. If you want to create values or keys or change, remove the restriction of regedit.exe with the example below and instead use regedit.exe.
Order:
Code:
REG DELETE classname [/ v ValueName | / ve | / va] [/ f]
Classname: [\Machine\]FullKey
Computer: Name of remote machine - if this parameter is omitted, the current computer is the default
Only HKLM and HKU are available on remote computers
in the form of ROOTKEY\SubKey name
ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]
Subkey Name complete a registry key under the selected ROOTKEY
ValueName Value name under the selected key to delete
CAUTION: If this parameter is omitted, all subkeys and values under the key will be deleted.
/ve Removes the value of empty value name <Without name>
He goes Removes all values under this key
/ f Force deletion without confirmation
Examples:
HTML Code:
REG DELETE HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun
Deletes the registry key DisallowRun and all its subkeys and values.
HTML Code:
REG DELETE\\ext.1\HKLM\Software\Microsoft\Windows\CurrentVersion\Run/v NT_Authority
Deletes the registry value NT_Authority under the Run key of the computer ext.1
Practical example:
To remove the restriction of editing tools registry, use this command:
HTML Code:
REG DELETE HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System/v DisableRegistryTools/f
Of course, you do not type these commands in the command line, it is best to create a batch file for more control and convenience.
Bookmarks