PowerShell – getting Remote network adapters

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 = "SERVER_1",

$computername | %
Get-WmiObject Win32_NetworkAdapter -ComputerName $_ | `
? {$_.AdapterType -eq ‘Ethernet 802.3’} | Select __SERVER, Caption

Here is an example of the output.



Have a code issue? Share your code by going to Gist.github.com and pasting your code there, then post the link here!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.