PC Review


Reply
Thread Tools Rate Thread

how to change a registry value

 
 
M
Guest
Posts: n/a
 
      7th Jul 2003
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Registry Tip of The Day - How to Change The Windows 2008 Terminal Services Licensing Mode Using The Registry Jon Wallace Microsoft Windows 2000 Registry 0 4th Oct 2008 08:06 PM
Registry Change Not Seen DC Microsoft Windows 2000 Registry Archive 4 23rd Nov 2004 11:03 PM
registry change dpwclk Windows XP Security 1 6th Jul 2004 08:12 AM
Registry change Rajesh_rana@hotmail.com Microsoft Windows 2000 2 18th Mar 2004 02:25 PM
unwanted registry change to change home page Mike L Windows XP Internet Explorer 1 15th Aug 2003 02:36 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:07 PM.