By default, microsoft windows 95, 98, me, and 2000 users can import registry files from the command prompt using the regedit command. using this command and a registry file that contains the proper commands, a user can add, remove, and otherwise edit the registry from the command line.. Delete registry key from command line. by srini. reg command allows us to delete registry keys and registry values from command line. this reg command can be used from batch files also. the syntax for the delete operation is explained below with examples. delete a registry value. I'd like to make a quick command line during some windows 7 imaging / testing. while testing, i need to disable the uac. i found a registry fix to do this, but wanted to simply run it through a command line. below is what i'm trying to add, and set the key value..
The command line tool reg.exe which ships with the windows operating system can be used to manage the registry from the command line. it provides you with access to delete or add but also other options like exporting, comparing or importing keys.. Using the windows nt resource kit supplement 2 utility reg.exe you can delete a registry value from the command line or batch file, e.g. reg delete hklmsoftwaretest. would delete the hkey_local_machinesoftwaretest value. when you enter the command you will be prompted if you really want to delete, enter y.. I need to use a reg query command to view the value of a key and set the result into a variable with this command: for /f "tokens=2* delims= " %%a in ('reg query "keyname" /v valuename') do set.