Solved

Find duplex mode using VBScript

Posted on 2004-10-13
1
1,620 Views
Last Modified: 2008-02-01
Is there a way using VBScript to find the Duplex mode setting for a NIC?  I want to see if our workstations are set to auto-detect, 10Mbps/full, 10Mbps/half, 100Mbps/full, or 100Mbps/half.

Actually, I also want to know how to change the setting.  I don't want it to auto-detect.

Thanks
0
Comment
Question by:meade470
1 Comment
 
LVL 12

Accepted Solution

by:
Mazaraat earned 250 total points
Comment Utility
Unfortunately there is no "set" way top pull that information it is very specific to the driver for your NIC.  Though it can be done, its just a little different for each NIC and it will use WMI to call for the information.

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_NetworkAdapter",,48)

or

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_NetworkAdapterConfiguration",,48)

But you have to know the name of the field from the individual NIC to get the info...

Post back with your NIC manufacturer and model number
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Some time ago I was asked to set up a web portal PC to put at our entrance. When customers arrive, they could see a webpage 'promoting' our company. So I tried to set up a windows 7 PC as a kiosk PC.......... I will spare you all the annoyances I…
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now