Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Registry`s Key by .BAT

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi Boys,

Is it possible to change registry`s key using a script (DOS file .BAT) in a w9x, NT 40 and W2000 environments?

If possible, what`s the commands and syntaxes?

Any examples, papers, docs, articles or free programs would be useful.

Thanks a lot
 
if you have the NTresource kit, (Which I am sure you can find free somewhere if you found this site, there is a utility named "reg.exe". Consider the following which will modify a registry kit and change the dns settings and search order on a remote machine:

reg update "hklm\system\currentcontrolset\services\tcpip\parameters\nameserver= 192.168.0.1 192.168.0.2 192.168.0.3" \\hostname
 
Thanks for your reply, but give me sometime more.

1) The reg update "hklm\system\...\nameserver= 192.168.0.1 192.168.0.2 192.168.0.3" \\hostname
reffers to Reg.exe program of the Wnt Res.Kit?

2) Is it possible to include the command above in a .bat file? or it must be entry by
start\Run ... like Regedit e.g. ?
 

You can also use Regedit from a .BAT file (logon script etc) to import a group of registry settings.

regedit /s c:\regimport.reg

(/s runs regedit in silent mode)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top