Intel AMT Features > Remote Access > Use Cases > Remove a Remote Access Policy
CollapseAll image

Remove a Remote Access Policy

The following steps describe how to remove a Remote Access policy.

1.  Retrieve the instance of AMT_RemoteAccessPolicyRule., where the “PolicyRuleName” key matches the policy to be deleted.

Parameter

Value

PolicyRuleName

The type of policy. Valid values:

     “User Initiated”

     “Alert”

     “Periodic”

 

2.  Invoke AMT_RemoteAccessPolicyRule.Delete .

Click here for a snippet demonstrating this step

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

  

$policyRuleName ="Alert" # The type of policy that should be removed.

$remoteAccessPolicyRuleRef =$wsmanConnectionObject.NewReference("AMT_RemoteAccessPolicyRule")

foreach($remoteAccessPolicyRuleItem in$remoteAccessPolicyRuleRef.Enumerate())

{

    if($remoteAccessPolicyRuleItem.Object.GetProperty("PolicyRuleName") -like $policyRuleName)

    {

          $remoteAccessPolicyRuleRef =$remoteAccessPolicyRuleItem.Object.ToReference("PolicyRuleName","CreationClassName")

          $remoteAccessPolicyRuleRef.Delete()

    }

}        

 

 

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:

   Remote Access Policies

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