Aug 28 2011 1:28PM GMT
Posted by: Richard Siddaway
Network
Network Adapter vendors
Posted by: Richard Siddaway
The NDis WMI classes expose some information about the vendors that produce the various adapters in our systems
function get-adaptervendor { param( [string]$computer="." ) Get-WmiObject -Namespace root\wmi -Class MSNdis_CoVendorDescription ` -ComputerName $computer | foreach { $id = Get-WmiObject -Namespace root\wmi ` -Class MSNdis_CoVendorId -ComputerName $computer ` -Filter "InstanceName='$($_.InstanceName)'" New-Object -TypeName PSobject -Property @{ Computer = $_.__SERVER Adapter = $_.InstanceName Active = $_.Active Description = $_.NdisCoVendorDescription Vendorid = $id.NdisCoVendorID } } }




