Intel AMT Features > Event Manager > Use Cases > Modify an Event Filter
CollapseAll image

Modify an Event Filter

The following steps describe how to modify an existing event filter.

1.  Retrieve the instance of AMT_PETFilterSetting with the PolicyID you want to modify.

2.  Make the required changes to the properties of AMT_PETFilterSetting. For more information, see Supported Fields Summary.

3.  Invoke AMT_PETFilterSetting.Put.

Click here for a snippet demonstrating this step

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

  

$policyID ="40" # The PolicyID you want to modify.

$petFilterSettingRef =$wsmanConnectionObject.NewReference("AMT_PETFilterSetting")

foreach($petFilterSettingItem in$petFilterSettingRef.Enumerate())

{

    $petFilterSettingRef =$petFilterSettingItem.Object.ToReference("InstanceID")

    $petFilterSettingInstance =$petFilterSettingRef.Get()

    if($petFilterSettingInstance.GetProperty("PolicyID") -like $policyID)

    {    

          $petFilterSettingInstance.SetProperty("LogOnEvent","false")

          $petFilterSettingRef.Put($petFilterSettingInstance)

          break

    }

}

 

 

Instance Diagram

Classes Used in This Flow

SDK Sample

Not applicable

 

See Also:

   Event Filters

   Event Types Summary

   AMT Generated Events

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