PC Review Forums Newsgroups Windows 2000 Microsoft Windows 2000 Registry how to change a registry value

Reply

how to change a registry value

 
Thread Tools Rate Thread
Old 07-07-2003, 07:15 PM   #1
M
Guest
 
Posts: n/a
Default how to change a registry value


I use a script to change the one of the network adapter
setting to 100 full duplex from auto-detect on w2000.
Since l have different network card (3com&intel...)instal
on each server.The Entry names or location/path is
different depend on which network card. I have to change
the path and name
(key&subkeys) on my script every time. Is there any method
so that l don't need to change the script every time.
No user/operator input is require. This is part of the
auto instal w2000 servers.
Thanks.
The following is my part of my script on two different
network card.

Script 1
-----------------------------------------------
strKeyPath = "SYSTEM\ControlSet001\Control\Class\{4D36E972-
E325-11CE-BFC1-08002BE10318}\0000"
strEntryName = "EXTPHY"
strValue = "2"

Sript 2
-----------------------------------------------
strKeyPath = "SYSTEM\ControlSet001\Control\Class\{4D36E972-
E325-11CE-BFC1-08002BE10318}\0000"
strEntryName = "Duplexmode"
strValue = "Full Duplex"

objReg.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, _
strEntryName, strValue
..

h
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off