To view the configuration details of a network adapter, you can specify the network adapter connection ID as it appears in your control panel. By linking the WMI result to the corresponding Win32_NetworkAdapterConfiguration class, you get to the actual configuration.
NOTE: Change the adapter name in $adapterid to some adapter name that actually exists on your machine.
$adapterid = 'Local Area Network'
$nic = Get-WmiObject Win32_NetworkAdapter -Filter "NetConnectionID='$adapterid'"
$nicconfig = $nic.GetRelated('Win32_NetworkAdapterConfiguration')
ReTweet this Tip!
Jul 28 2011, 06:00 AM