PowerShell: Identify Hard-Wired Network Connections

As is often with scripting, automation and tool making, we find ourselves needing to ensure we have a stable (wired) network connection before performing certain tasks on a system.  Whether it be for automating a domain join or simply copying a large file, ensuring you have that hard-wired connection can be critical.

After researching the internet and interrogating WMI on a few different test systems, I concluded that leveraging the Win32_NetworkAdapterConfiguration class was going to be my best option.  In one line of code we can get a collection of all hard-wired network connections on a system.

Read the full post

email

Written by , Posted .