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