O'Reilly logo

Pro Windows PowerShell by Hristo Deshev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

20.8. The Network Configuration

Network adapters are just another type of hardware with corresponding WMI objects that we can use to our advantage. To get information about the hardware device, we can query the Win32_NetworkAdapter objects on our system. Here is how the default view of my VIA Rhine II-compatible network adapter looks:

PS> gwmi Win32_NetworkAdapter -filter "Name LIKE 'VIA Rhine%'"


ServiceName      : FETNDIS
MACAddress       : 00:08:A1:93:10:9A
AdapterType      : Ethernet 802.3
DeviceID         : 4
Name             : VIA Rhine II Compatible Fast Ethernet Adapter
NetworkAddresses :
Speed            : 100000000

The information is strictly hardware related. You will not see anything related to the Internet, like an IP address assigned to the adapter. Those settings are available ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required