We can get a list of network adapters (calling them NICs is a bit outdated: the C in NIC stands for ‘card’, like it’s something you plug into an ISA or PCI slot. These days, it’s almost always built in) from Get-WMI Win32_NetworkAdapter and Win32_NetworkAdapterConfiguration, but per http://msdn.microsoft.com/en-us/library/aa394216%28v=vs.85%29.aspx it’s being deprecated. We should now use MSFT_NetAdapter. Instead, and purely for interest’s sake, let’s call the underlying .NET object instead...(read more)
↧