Intel AMT Features > System Defense > Use Cases > Get and Set the Policy Timeout
CollapseAll image

Get and Set the Policy Timeout

The following steps describe how to get and set the policy timeout parameter of a System Defense policy.

1.  Retrieve the instance of AMT_SystemDefensePolicy with the InstanceID that you want.

 Note:

The InstanceID is the ID of the System Defense policy you want to update.

2.  To get the policy timeout, invoke AMT_SystemDefensePolicy.GetTimeout.

Click here for a snippet demonstrating this step

You can execute this snippet by inserting it into the execution template found here.

  

# $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")

}

 

 

3.  To set the policy timeout, invoke AMT_SystemDefensePolicy.SetTimeout.

 Note:

The Timeout parameter is ignored in default System Defense policies.

 

Click here for a snippet demonstrating this step

You can execute this snippet by inserting it into the execution template found here.

  

# $systemDefensePolicyRef is an EPR to the AMT_SystemDefensePolicy object created by the 'Create a System Defense Policy' use case.

$inputObject =$systemDefensePolicyRef.CreateMethodInput("SetTimeout")

$inputObject.SetProperty("Timeout","10")

$outputObject =$systemDefensePolicyRef.InvokeMethod($inputObject)

$returnValue =$outputObject.GetProperty("ReturnValue")

 

 

Instance Diagram

Not applicable

Classes Used in This Flow

SDK Sample

If there is a sample demonstrating this flow, it is included in the SDK installation file. See SDK Installation Layout for details.

 

See Also:

   Network Isolation

   System Defense Policies

   Heuristic Policies

   System Defense Filter Types

   Processing Network Packets with System Defense

   Networking Packet Structures

Copyright © 2006-2022, Intel Corporation. All rights reserved.