14 lines
913 B
PowerShell
14 lines
913 B
PowerShell
$thirdPartyDataStorageServiceRef = $wsmanConnectionObject.NewReference("SELECT * FROM AMT_ThirdPartyDataStorageService WHERE Name='Intel(r) AMT Third Party Data Storage Service'")
|
|
$inputObject = $thirdPartyDataStorageServiceRef.CreateMethodInput("GetBlockAttributes")
|
|
# $sessionHandle is the session handle 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())
|
|
$outputObject = $thirdPartyDataStorageServiceRef.InvokeMethod($inputObject)
|
|
$returnValue = $outputObject.GetProperty("ReturnValue")
|
|
if($returnValue -like "0")
|
|
{
|
|
$blockSize = $outputObject.GetProperty("BlockSize")
|
|
$blockHidden = $outputObject.GetProperty("BlockHidden")
|
|
$blockName = $outputObject.GetProperty("BlockName")
|
|
} |