3 lines
360 B
PowerShell

$instanceID = "Intel(r) AMT:All" # The instance ID of the desired filter.
$filterCollectionRef = $wsmanConnectionObject.NewReference("SELECT * FROM CIM_FilterCollection WHERE InstanceID='" + $instanceID + "'")
$listenerDestinationWSManagementRef = $filterCollectionRef.Subscribe("http://schemas.dmtf.org/wbem/wsman/1/wsman/PushWithAck", "192.168.0.0:5000")