Solved

Find duplex mode using VBScript

Posted on 2004-10-13
1
1,622 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
ID: 12303515
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Recover password from HP 4300 SAN 2 41
Restrict RDP Remote Access through SonicWall 3 93
Botnet detection help me please 21 81
Booster, Repeater, or Wireless Access Point 9 43
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
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…

914 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

23 Experts available now in Live!

Get 1:1 Help Now