serverRoom/amt-sdk-20-0-0-1/IntelvProModule/PS_Snippets/Storage/Storage-Modify Block Attributes (Name_Visibility)3b.ps1

9 lines
763 B
PowerShell

$thirdPartyDataStorageServiceRef = $wsmanConnectionObject.NewReference("SELECT * FROM AMT_ThirdPartyDataStorageService WHERE Name='Intel(r) AMT Third Party Data Storage Service'")
$inputObject = $thirdPartyDataStorageServiceRef.CreateMethodInput("SetBlockVisibility")
# $sessionHandle is the session handle returned by 'RegisterApplication' method.
$inputObject.SetProperty("SessionHandle", $sessionHandle.ToString())
# $blockHandles contains one or more block handles returned by 'GetAllocatedBlocks' method.
$inputObject.SetProperty("BlockHandle", $blockHandles.Item(0).ToString())
$inputObject.SetProperty("BlockHidden", "true")
$outputObject = $thirdPartyDataStorageServiceRef.InvokeMethod($inputObject)
$returnValue = $outputObject.GetProperty("ReturnValue")