Active Directory Management Framework

Configuration driven Active Directory management.

Group Policy Permission Filters


Permission filters are the conditions you can use for selecting, which GPOs are assigned what permission in the Group Policy Permission Component, when using its Filter property.

Filter conditions can answer any of the following questions:

Example Configurations

A filter condition that matches all GPOs defined in configuration:

    "Name":  "IsManaged",
    "Managed":  true

A filter condition that applies to all GPOs linked to the OU “Tier 0” and all OUs under it:

    "Name":  "Tier0Linked",
    "Path":  "OU=Tier 0,%DomainDN%",
    "PathScope":  "SubTree"

A filter condition that applies to either the Default Domain Policy or the Default Domain Controllers Policy.

    "Name":  "DefaultPolicies",
    "GpName":  "^Default Domain Policy$|Default Domain Controllers Policy",
    "GpNameMode":  "Regex"



Name of the filter rule.

Must only contain letters, numbers and underscore.


Reverses the result of the rule. This combined with another condition allows reversing the result. For example, combined with a Path condition, this would make the filter match any GPO NOT linked to that path.


ParameterSet: Managed

Matches GPOs that are defined by ADMF ($true) or not so ($false).


ParameterSet: Path

This parameter uses name resolution.

Matches GPOs that have been linked to the specified organizational unit (or potentially OUs beneath it).


ParameterSet: Path

Defines how the path rule is applied:

Base Only the specified OU’s linked GPOs are evaluated (default).
OneLevel Only the OU’s directly beneath the specified OU are evaluated for linked GPOs.
SubTree All OUs under the specified path are avaluated for linked GPOs.


ParameterSet: Path

Whether the path is optional. By default, when evaluating a path filter, processing of GP permission terminates if the designated path does not exist, as we cannot guarantee a consistent permission-set being applied. With this setting enabled, instead processing silently continues.

Note: Even if this is enabled, a silent log entry will be added anyway for tracking purposes.


ParameterSet: Name

This parameter uses name resolution.

Name of the GP to filter for. This can be a wildcard or regex match, depending on the -GPNameMode parameter, however by default an exact match is required.


ParameterSet: Name

How exactly the GPName parameter is applied:

Explicit An exact name equality is required (default)
Wildcard Supports wildcard comparisons (using the -like operator)
Regex Supports regex matching (using the -match operator)

None of the three options is case sensitive.