14 lines
748 B
PowerShell
14 lines
748 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")
|
|
if($enabledState -like "2")
|
|
{
|
|
EnableEACService("3")
|
|
}
|
|
$inputObject = $endpointAccessControlServiceRef.CreateMethodInput("SetEacOptions")
|
|
$inputObject.SetProperty("EacVendors", "1")
|
|
$inputObject.SetProperty("PostureHashAlgorithm", "1")
|
|
$outputObject = $endpointAccessControlServiceRef.InvokeMethod($inputObject)
|
|
$returnValue = $outputObject.GetProperty("ReturnValue")
|
|
EnableEACService("2")
|
|
UpdatePostureState |