PowerShell - getting Remote network adapters

Published August 30, 2013 by FoxDeploy

Hi all,

Today I needed to get the remote network adapters for a group of computers, to determine if they all had a common issue.  Rather than RDP into 18 servers, a few characters of Powershell did all the work for me.

In my case, I needed the remote server name, and also the Caption for the NIC.

$computername = 1..20 | % {"Server_$($_)" }

$computername | % { 
     Get-WmiObject Win32\_NetworkAdapter -ComputerName $_ | ` 
        ? {$_.AdapterType -eq 'Ethernet 802.3'} 
          | Select __SERVER, Caption }

Here is an example of the output.


Microsoft MVP

Five time Microsoft MVP, and now I work for the mothership

Need Help?

Get help much faster on our new dedicated Subreddit!

depicts a crowd of people in a night club with colored lights and says 'join the foxdeploy subrreddit today'

Blog Series
series_sml_PowerShellGUI series_sml_IntroToRaspberryPi Programming series_sml_IntroToWindows Remote Management Series The Logo for System Center Configuration Manager is displayed here Depicts a road sign saying 'Learning PowerShell Autocomplete'

Blog Stats