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
|