Intel AMT Features > Agent Presence > Use Cases > Remove an Agent Watchdog's System Defense Policy
CollapseAll image

Remove an Agent Watchdog’s System Defense Policy

The following step describes how to remove an agent watchdog’s system defense policy.

1.  Invoke Delete on the AMT_AgentPresenceInterfacePolicy instance.

Click here for a snippet demonstrating this step

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


$instanceID =# The ID of the System Defense policy you want to delete.

# Select the wired interface.

$ethernetPortRef =$wsmanConnectionObject.NewReference("SELECT * FROM CIM_EthernetPort WHERE DeviceID='Intel(r) AMT Ethernet Port 0'")

$agentPresenceInterfacePolicyRef =$wsmanConnectionObject.NewReference("AMT_AgentPresenceInterfacePolicy")


# Traverse to the AMT_AgentPresenceInterfacePolicy instances that are connected to the CIM_EthernetPort instance.

foreach($agentPresenceInterfacePolicyItem in$agentPresenceInterfacePolicyRef.Enumerate("",$null))


    # For each instance, check if it is associated to the AMT_SystemDefensePolicy instance.



          # Get the AMT_SystemDefensePolicy object using its EPR.

          $systemDefensePolicyInstance =$agentPresenceInterfacePolicyItem.Object.GetProperty("Dependent").Ref.Get()

          if($systemDefensePolicyInstance.GetProperty("InstanceID") -like $instanceID)


                $agentPresenceInterfacePolicyRef =$agentPresenceInterfacePolicyItem.Object.ToReference("Antecedent","Dependent")







Instance Diagram

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:

   Agent States

   Agent Watchdog Timers and Actions

   Limitations on the Number of Actions and Agents

   System Defense Feature

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