4 lines
398 B
PowerShell

$hostBasedSetupServiceRef = $wsmanConnectionObject.NewReference("SELECT * FROM IPS_HostBasedSetupService WHERE Name='Intel(r) AMT Host Based Setup Service'")
$hostBasedSetupServiceInstance = $hostBasedSetupServiceRef.Get()
$currentControlMode = $hostBasedSetupServiceInstance.GetProperty("CurrentControlMode")
$allowedControlModes = $hostBasedSetupServiceInstance.GetProperty("AllowedControlModes")