modifying registry entry from CLI in windows

August 25, 2011 at 07:32:07
Specs: Windows 2003
Hi,

I need a way to modify dword field inside a registry from command line.

This is to be done on a Node whose OS is windows 2003 server. I can do it from GUI but i need a way via CLI

I can copy the contents to a .reg file using "regedit" command but not quite sure how to finalise the change

Example:

Here, i am able to transfer contents to a file called hidden.reg
C:\temp>cd /d c:\temp && regedit /e c:\temp\hidden.reg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL"

example this registry has following contents:
If i need to change value of field "CheckedValue" & initialise this new registry strictly by CLI, what commands should be used?

"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced"
"Text"="@shell32.dll,-30501"
"Type"="radio"
"CheckedValue"=dword:00000002
"ValueName"="Hidden"
"DefaultValue"=dword:00000002
"HKeyRoot"=dword:80000001
"HelpID"="shell.hlp#51104"


In Windows NT, i know it can be done by using "echo" but not quite sure of the way in Windows OS 2003.

Any advise shall be appreciated

BR// Alpha


See More: modifying registry entry from CLI in windows

Report •

#1
September 20, 2011 at 10:10:26
"I can copy the contents to a .reg file using "regedit" command but not quite sure how to finalise the change" Double-click the saved .reg file and confirm the changes to the Registry.

Report •
Related Solutions


Ask Question