4 lines
377 B
PowerShell

$ethernetPortSettingsRef = $wsmanConnectionObject.NewReference("SELECT * FROM AMT_EthernetPortSettings WHERE InstanceID='Intel(r) AMT Ethernet Port Settings 1'")
$ethernetPortSettingsInstance = $ethernetPortSettingsRef.Get()
$linkPreference = $ethernetPortSettingsInstance.GetProperty("LinkPreference")
$linkControl = $ethernetPortSettingsInstance.GetProperty("LinkControl")