3 lines
290 B
PowerShell

$ethernetPortSettingsRef = $wsmanConnectionObject.NewReference("SELECT * FROM AMT_EthernetPortSettings WHERE InstanceID='Intel(r) AMT Ethernet Port Settings 0'")
$ethernetPortSettingsInstance = $ethernetPortSettingsRef.Get()
$linkIsUp = $ethernetPortSettingsInstance.GetProperty("LinkIsUp")