serverRoom/backend-csharp/amt-sdk-20-0-0-1/IntelvProModule/PS_Snippets/Storage/Storage-Remove a Blocks Permission Group.ps1

10 lines
871 B
PowerShell

$thirdPartyDataStorageServiceRef = $wsmanConnectionObject.NewReference("SELECT * FROM AMT_ThirdPartyDataStorageService WHERE Name='Intel(r) AMT Third Party Data Storage Service'")
$inputObject = $thirdPartyDataStorageServiceRef.CreateMethodInput("RemovePermissionsGroup")
# $sessionHandle is the session handle that returned by 'RegisterApplication' method.
$inputObject.SetProperty("SessionHandle", $sessionHandle.ToString())
# $blockHandle is the block handle returned by 'Create a block for the registered application' use case.
$inputObject.SetProperty("BlockHandle", $blockHandle.ToString())
# $groupHandle is the group handle returned by 'AddPermissionsGroup' method.
$inputObject.SetProperty("GroupHandle", $groupHandle.ToString())
$outputObject = $thirdPartyDataStorageServiceRef.InvokeMethod($inputObject)
$returnValue = $outputObject.GetProperty("ReturnValue")