Connection Time of Windows Ethernet Link in Powershell

Solution 1:

Use instead the Get-CimInstance command.

An example for getting the up-time is the following PowerShell command:

Get-CimInstance Win32_networkadapter | where {$_.NetEnabled -eq $true} | select Name, @{N="Uptime"; E={(Get-Date) - $_.TimeOfLastReset}} |sort Name | fl