8 lines
497 B
PowerShell
8 lines
497 B
PowerShell
function EnableEACService($enable)
|
|
{
|
|
$endpointAccessControlServiceRef = $wsmanConnectionObject.NewReference("SELECT * FROM AMT_EndpointAccessControlService WHERE Name='Intel(r) AMT Endpoint Access Control Service'")
|
|
$inputObject = $endpointAccessControlServiceRef.CreateMethodInput("RequestStateChange")
|
|
$inputObject.SetProperty("RequestedState", $enable)
|
|
$outputObject = $endpointAccessControlServiceRef.InvokeMethod($inputObject)
|
|
$returnValue = $outputObject.GetProperty("ReturnValue")
|
|
} |