DjCalvin
May 10 2006, 02:24 PM
| | I have been assigning nic speeds for a couple years on all new boxes that we build in our datacenters manually. I finally got fed up and picked up some vbscript books which have been a great help managing some redunant tasks i must do, but this one stumps me.
Key Name: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}
Under each subkey there is a string value of "SpeedDuplex" with a value ranging from 0+ 100/full is 4 auto/auto is 0
If the device is not a physical hardware nic, it will not have the SpeedDuplex Key, which is a plus for finding real devices vs virtual/software ones.
What I am trying to do is run through each subkey and its strings and change any that have a string of "SpeedDuplex" with a value of 0 to 4.
Im not sure about how to loop through all the keys to do this.
Any help would be appreciated.
Thx |
Reply
miCRoSCoPiC^eaRthLinG
May 10 2006, 02:42 PM
Calvin - I dunno much about using VBScript, but you might want to take a look at this site:
http://www.daniweb.com/techtalkforums/thread20678.htmlThis has code samples and describes how to loop through a bunch of values under a particular registry key. This might help you come up with a routine that does your job..
Regards,
m^e
Reply
Recent Queries:--
vb script registry key - 15.02 hr back. (1)
-
add registry key with vbs - 18.91 hr back. (1)
-
vbs read subkeys - 19.66 hr back. (1)
-
vbscript to search - 21.59 hr back. (1)
-
vbs script to add a registry string - 40.89 hr back. (1)
-
vbs loop registry keys - 46.39 hr back. (1)
-
vbs registry keys - 46.55 hr back. (1)
-
vbscript add reg value - 47.33 hr back. (1)
-
vbs list of registry keys - 47.55 hr back. (2)
-
vbs read reg subkeys - 48.28 hr back. (1)
-
vbs readreg subkeys - 49.31 hr back. (1)
-
vbs readreg devices - 49.42 hr back. (1)
-
vbscript read registry - 50.46 hr back. (1)
-
vbs find registry key - 51.82 hr back. (1)
Similar Topics
Keywords :
scripting, needed, loop, subkeys, string
- VBScript Question - Coding For Mobile Platforms
(1)
What Is VBScript ?
(3)
hey i am think about learning VBScript just i don't know anything about it, can some one answer
my question about VBscript. 1. What is VBscript used for? 2. What do i need to run VBscript on my
site? ....
VBScript vs JScript
vbscript...is it ever used? (8)
I have used Jscript every since I started web development, why did m$ make vbscript? Are there
any advantages to using it? Is it abandoned now? I have never seen any site use it.....
Looking for scripting, needed, loop, subkeys, string