Click to See Complete Forum and Search --> : modifying registry entry from CLI in windows 2003


alphadude
August 25th, 2011, 08:38 AM
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"

now what command i use to initialise the entry in file hidden.reg

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