5 lines
342 B
PowerShell

$remotePortRef = $wsmanConnectionObject.NewReference("SELECT * FROM CIM_RemotePort WHERE Name='Intel(r) AMT Remote Port'")
$remotePortInstance = $remotePortRef.Get()
$infoFormat = $remotePortInstance.GetProperty("InfoFormat")
$accessInfo = $remotePortInstance.GetProperty("AccessInfo")
$portInfo = $remotePortInstance.GetProperty("PortInfo")