7 lines
525 B
PowerShell

$handle = "4" # The handle of the user, returned when the entry was created.
$authorizationServiceRef = $wsmanConnectionObject.NewReference("SELECT * FROM AMT_AuthorizationService WHERE Name='Intel(r) AMT Authorization Service'")
$inputObject = $authorizationServiceRef.CreateMethodInput("SetAclEnabledState")
$inputObject.SetProperty("Handle", $handle)
$inputObject.SetProperty("Enabled", "true")
$outputObject = $authorizationServiceRef.InvokeMethod($inputObject)
$returnValue = $outputObject.GetProperty("ReturnValue")