8 lines
408 B
PowerShell
8 lines
408 B
PowerShell
# $systemDefensePolicyRef is an EPR to the AMT_SystemDefensePolicy Object created by the 'Create a System Defense Policy' use case.
|
|
$inputObject = $systemDefensePolicyRef.CreateMethodInput("GetTimeout")
|
|
$outputObject = $systemDefensePolicyRef.InvokeMethod($inputObject)
|
|
$returnValue = $outputObject.GetProperty("ReturnValue")
|
|
if($returnValue -like "0")
|
|
{
|
|
$timeout = $outputObject.GetProperty("Timeout")
|
|
} |