Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Set NIC Speed to Auto on popular NICs

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,52708
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Set NIC Speed to Auto on popular NICs
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Set NIC Speed to Auto on popular NICs - 10/15/2007 11:44:04 PM   
  ginolard


Posts: 1044
Score: 21
Joined: 8/10/2005
Status: offline
We are in the process of upgrading our LAN to 100 mb/s.  As a result the network team have asked me to ensure that the NICs on all client machines are set to "Auto" for the speed and duplex settings. 

Given that we have several different NICs in existence, this proved tricky.  Anyway, this is the script I've been using. 


      

It reads in a list of machines from a c:\temp\input.txt although you could just as easily get a list of machines from AD and parse that instead.  It should handle most popular NICs although there might be some weird and wonderful ones out there that it can't handle.  If so, you will need to find out the relevant key that sets the "Auto" setting and also the name of the NIC under System\Currentcontrolset\Control\Class\{4D36E972-E325-11CE-BFC1-08002be10318} and add an appropriate Case statement.

Oh, in case you were wondering why I do this


      

It's just to check that the value was REALLY changed.  Perhaps a bit of overkill but I want to 100% certain it's worked ;)

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm
 
 
Revisions: 1 | Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Set NIC Speed to Auto on popular NICs Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts