3 lines
342 B
PowerShell

$endpointAccessControlServiceRef = $wsmanConnectionObject.NewReference("SELECT * FROM AMT_EndpointAccessControlService WHERE Name='Intel(r) AMT Endpoint Access Control Service'")
$endpointAccessControlServiceInstance = $endpointAccessControlServiceRef.Get()
$enabledState = $endpointAccessControlServiceInstance.GetProperty("EnabledState")