Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 122
  • Last Modified:

Modify the registry of Windows 2000 using a batch file.

I want to change a registry entry of a Windows 2000 machine using a batch file. How do I do this?
0
hrajan
Asked:
hrajan
  • 3
  • 2
  • 2
  • +2
1 Solution
 
jbutteryCommented:
There are several ways. You need to be more specific on what you want to do.
0
 
SunBowCommented:
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/ntwrkstn/reskit/24_reged.asp
"Regini.exe Makes Registry changes by using script files."

Have your batch file call programs that can manage registry using parameters or script files.  Reg.exe is another one of many. Check out MS downloads for preference, better IMO than 3rd party.
0
 
hrajanAuthor Commented:
At this location in the registry:

HKEY_LOCAL_MACHINE\Software\Symantec\pcAnywhere\CurrentVersion\Host

I want to add a new DWORD value "ProcessorMask" with value 0x00000001.

How do I do this by running a .bat file?
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
KnightyCommented:
i.e. if you want to change
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
RegDone to "1" then use

reg add HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion /v RegDone /t REG_SZ /d 1 /f

do reg add /? or reg /? for more options
0
 
KnightyCommented:
reg add HKLM\Software\Symantec\pcAnywhere\CurrentVersion\Host /v ProcessorMask /t REG_DWORD /d 0x00000001 /f

should do what you want
0
 
hrajanAuthor Commented:
I ran the above statement in the Command prompt and got the following error:

'reg' is not recognized as an internal or external command,
operable program or batch file.

Should I download a program by name reg.exe and then try running it?  Please let me know what I am doing wrong..
0
 
KnightyCommented:
this is a normal command, it should be installed with your windows
0
 
jbutteryCommented:
Reg.exe is not part of Win2K install. See Sunbow's post of 3/24.
0
 
MusicManCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: SunBow {http:#8197446}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!



MusicMan
EE Cleanup Volunteer
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now