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

Located at:<SDK_root>\Windows\Intel_AMT\Samples\WS-Management\RemoteAccessAdmin

 

See Also:

   Remote Access Policies

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