Archive for September, 2013

Exclude Disabled users in Dynamic Distribution Groups – Exchang 2010

September 25, 2013 Leave a comment

You may need to exclude disabled users in Dynamic distribution Groups

for that you can use “UserAccountControl”  filter property.

1. Get the list of user with account disabled using following EMS

Get-user | FL Name, *Con*


2. Create Dynamic Distribution group using following cmd

NewDynamicDistributionGroupName“MyGroup”Alias“MyGroup”RecipientFilter{(RecipientTypeeq ‘UserMailbox’)andnot(userAccountControl eq ‘AccountDisabled, NormalAccount’)}
Categories: Uncategorized