3 lines
303 B
PowerShell

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