Need to query adapter speeds for all devices in specific OU
following works for my device but need to report on all devices in (OU=XP,OU=Workstations,OU=Devices,DC=prod,DC=prv)
-----------------------------------------------
PS C:\Users\Admin.Remi.Boileau.PROD> Get-WmiObject win32_networkadapter -Filter 'index = 11'
ServiceName : e1qexpress
MACAddress : C8:60:00:8B:6F:C4
AdapterType : Ethernet 802.3
DeviceID : 11
Name : Intel(R) 82574L Gigabit Network Connection #2
NetworkAddresses :
Speed : 100000000
This also works but again, only outputs my adapter settings
PS C:\Users\Admin.Remi.Boileau.PROD> Get-WmiObject -class Win32_PerfRawData_Tcpip_NetworkInterface -ComputerName Localhost | Format-Table Name,@{label="LinkSpeed(MB)";Expression={$_.CurrentBandwidth/1000000 -as [int]}}