Friday , November 16 2018
Home - Exchange Migrations - Quickly Adding Active Directory Group Members using a LDAP filter

Quickly Adding Active Directory Group Members using a LDAP filter

There are times when you need a quick one-liner to add Active Directory group membership based on users selected by some data. In this case I needed to move AD users into AD Distribution lists based on their email (mail attribute) externally managed information.

The following script finds the users be looking at the LDAP filter of mail = *@domaintochek.com and then adds the found users to a AD Group.

The example above will add all users with email addresses containing @domaintocheck.com to a Active Directory Group object called “EAPPolicy1”.

The quick change moved the customers AD managing their mail attribute to Exchange Address Policy (EAP) for a one off conversion. The Identify Management will then be adding users into the correct AD groups for Exchange to stamp the correct EAP policy.

Check Also

Mac Outlook 2016 Screen/View Crashed and Flashing black

The Outlook 2016 client has been trusted workhorse for email since the full release. ¬†However …

Leave a Reply

Your email address will not be published. Required fields are marked *