Microsoft
Software
Hardware
Network
Question : Remotley Query Client PC Network Duplex settings
Is there a way with either WMI, 3rd party utilities or standard windows commands to remotley enumerate the current state of a Network card's link speed and Duplex settings
We will be roling out new Network infrastructure. I need to make sure that all Client NICS are set to autonegiate. However I know for a fact, that some clients are set to 10mbs 1/2 Duplex. I need to remotley identify these clients so that I can then change the settings if required.
Logging on locally is not an option, as we are lookeing at over 100 machines spread out over 18 offices.
I know where the registry location is for the setting, but it is unigue for every network adapter
Key Name Value
HKLM\System\CurrentControl
Set\Contro
l\Class\{4
D36E972-E3
25-11CE-BF
C1-08002BE
10318}\000
1\Ndi\Para
ms\DuplexM
ode\enum\1
Auto Negotiation
HKLM\System\CurrentControl
Set\Contro
l\Class\{4
D36E972-E3
25-11CE-BF
C1-08002BE
10318}\000
1\Ndi\Para
ms\DuplexM
ode\enum\2
10Mbps/Half Duplex
I have had a look at the following 2 scripts from the MS script center, bet neither of them enumerate the link status of the NIC.
**************************
**Script 1*************************
**********
**********
***
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("S
elect * from Win32_NetworkAdapter",,48)
For Each objItem in colItems
Wscript.Echo "Adapter Type: " & objItem.AdapterType
Select Case objItem.AdapterTypeID
Case 0 strAdapterType = "Ethernet 802.3"
Case 1 strAdapterType = "Token Ring 802.5"
Case 2 strAdapterType = "Fiber Distributed Data Interface (FDDI)"
Case 3 strAdapterType = "Wide Area Network (WAN)"
Case 4 strAdapterType = "LocalTalk"
Case 5 strAdapterType = "Ethernet using DIX header format"
Case 6 strAdapterType = "ARCNET"
Case 7 strAdapterType = "ARCNET (878.2)"
Case 8 strAdapterType = "ATM"
Case 9 strAdapterType = "Wireless"
Case 10 strAdapterType = "Infrared Wireless"
Case 11 strAdapterType = "Bpc"
Case 12 strAdapterType = "CoWan"
Case 13 strAdapterType = "1394"
End Select
Wscript.Echo "Adapter Type Id: " & strAdapterType
Wscript.Echo "AutoSense: " & objItem.AutoSense
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Device ID: " & objItem.DeviceID
Wscript.Echo "Index: " & objItem.Index
Wscript.Echo "MAC Address: " & objItem.MACAddress
Wscript.Echo "Manufacturer: " & objItem.Manufacturer
Wscript.Echo "Maximum Number Controlled: " & objItem.MaxNumberControlle
d
Wscript.Echo "Maximum Speed: " & objItem.MaxSpeed
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Net Connection ID: " & objItem.NetConnectionID
Wscript.Echo "Net Connection Status: " & objItem.NetConnectionStatu
s
For Each strNetworkAddress in objItem.NetworkAddresses
Wscript.Echo "NetworkAddress: " & strNetworkAddress
Next
Wscript.Echo "Permanent Address: " & objItem.PermanentAddress
Wscript.Echo "PNP Device ID: " & objItem.PNPDeviceID
Wscript.Echo "Product Name: " & objItem.ProductName
Wscript.Echo "Service Name: " & objItem.ServiceName
Wscript.Echo "Speed: " & objItem.Speed
Next
**************************
**Script 2*************************
**********
**********
***
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_NetworkAdapterConfig
uration")
For Each objItem in colItems
Wscript.Echo "ARP Always Source Route: " & objItem.ArpAlwaysSourceRou
te
Wscript.Echo "ARP Use EtherSNAP: " & objItem.ArpUseEtherSNAP
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Database Path: " & objItem.DatabasePath
Wscript.Echo "Dead GW Detection Enabled: " & objItem.DeadGWDetectEnable
d
Wscript.Echo "Default IP Gateway: " & objItem.DefaultIPGateway
Wscript.Echo "Default TOS: " & objItem.DefaultTOS
Wscript.Echo "Default TTL: " & objItem.DefaultTTL
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "DHCP Enabled: " & objItem.DHCPEnabled
Wscript.Echo "DHCP Lease Expires: " & objItem.DHCPLeaseExpires
Wscript.Echo "DHCP Lease Obtained: " & objItem.DHCPLeaseObtained
Wscript.Echo "DHCP Server: " & objItem.DHCPServer
Wscript.Echo "DNS Domain: " & objItem.DNSDomain
Wscript.Echo "DNS Domain Suffix Search Order: " & _
objItem.DNSDomainSuffixSea
rchOrder
Wscript.Echo "DNS Enabled For WINS Resolution: " & _
objItem.DNSEnabledForWINSR
esolution
Wscript.Echo "DNS Host Name: " & objItem.DNSHostName
Wscript.Echo "DNS Server Search Order: " & objItem.DNSServerSearchOrd
er
Wscript.Echo "Domain DNS Registration Enabled: " & _
objItem.DomainDNSRegistrat
ionEnabled
Wscript.Echo "Forward Buffer Memory: " & objItem.ForwardBufferMemor
y
Wscript.Echo "Full DNS Registration Enabled: " & _
objItem.FullDNSRegistratio
nEnabled
Wscript.Echo "Gateway Cost Metric: " & objItem.GatewayCostMetric
Wscript.Echo "IGMP Level: " & objItem.IGMPLevel
Wscript.Echo "Index: " & objItem.Index
Wscript.Echo "IP Address: " & objItem.IPAddress
Wscript.Echo "IP Connection Metric: " & objItem.IPConnectionMetric
Wscript.Echo "IP Enabled: " & objItem.IPEnabled
Wscript.Echo "IP Filter Security Enabled: " & _
objItem.IPFilterSecurityEn
abled
Wscript.Echo "IP Port Security Enabled: " & _
objItem.IPPortSecurityEnab
led
Wscript.Echo "IPSec Permit IP Protocols: " & _
objItem.IPSecPermitIPProto
cols
Wscript.Echo "IPSec Permit TCP Ports: " & objItem.IPSecPermitTCPPort
s
Wscript.Echo "IPSec Permit UDP Ports: " & objItem.IPSecPermitUDPPort
s
Wscript.Echo "IP Subnet: " & objItem.IPSubnet
Wscript.Echo "IP Use Zero Broadcast: " & objItem.IPUseZeroBroadcast
Wscript.Echo "IPX Address: " & objItem.IPXAddress
Wscript.Echo "IPX Enabled: " & objItem.IPXEnabled
Wscript.Echo "IPX Frame Type: " & objItem.IPXFrameType
Wscript.Echo "IPX Media Type: " & objItem.IPXMediaType
Wscript.Echo "IPX Network Number: " & objItem.IPXNetworkNumber
Wscript.Echo "IPX Virtual Net Number: " & objItem.IPXVirtualNetNumbe
r
Wscript.Echo "Keep Alive Interval: " & objItem.KeepAliveInterval
Wscript.Echo "Keep Alive Time: " & objItem.KeepAliveTime
Wscript.Echo "MAC Address: " & objItem.MACAddress
Wscript.Echo "MTU: " & objItem.MTU
Wscript.Echo "Number of Forward Packets: " & objItem.NumForwardPackets
Wscript.Echo "PMTUBH Detect Enabled: " & objItem.PMTUBHDetectEnable
d
Wscript.Echo "PMTU Discovery Enabled: " & objItem.PMTUDiscoveryEnabl
ed
Wscript.Echo "Service Name: " & objItem.ServiceName
Wscript.Echo "Setting ID: " & objItem.SettingID
Wscript.Echo "TCPIP Netbios Options: " & objItem.TcpipNetbiosOption
s
Wscript.Echo "TCP Maximum Connect Retransmissions: " & _
objItem.TcpMaxConnectRetra
nsmissions
Wscript.Echo "TCP Maximum Data Retransmissions: " & _
objItem.TcpMaxDataRetransm
issions
Wscript.Echo "TCP NumC onnections: " & objItem.TcpNumConnections
Wscript.Echo "TCP Use RFC1122 Urgent Pointer: " & _
objItem.TcpUseRFC1122Urgen
tPointer
Wscript.Echo "TCP Window Size: " & objItem.TcpWindowSize
Wscript.Echo "WINS Enable LMHosts Lookup: " & _
objItem.WINSEnableLMHostsL
ookup
Wscript.Echo "WINS Host Lookup File: " & objItem.WINSHostLookupFile
Wscript.Echo "WINS Primary Server: " & objItem.WINSPrimaryServer
Wscript.Echo "WINS Scope ID: " & objItem.WINSScopeID
Wscript.Echo "WINS Secondary Server: " & objItem.WINSSecondaryServe
r
Next
Answer : Remotley Query Client PC Network Duplex settings
PAQed with points refunded (125)
GranMod
Community Support Moderator
Random Solutions
Scheduled NTBACKUP could not start!
Connect XP home to Domain based network
Connecting Wireless 4-Port Router to 4-Port Router Modem via LAN ports
how to expand the ip range of network
Cisco 1130AP - any way to make ALL packets tagged?
Cisco IOS: how to load a login banner from a txt file on drive
Default Username in MS Active Directory
Slow disk performance on HP DL 380G5 SAS RAID1+0
Theoretical Laptime
Roadrunner, D-Link 524 and Vonage