Update ManagedBy setting for all Distribution Lists Starting with Matching Criteria

Say you have a department with 50 or so distribution lists and they want to have a user or group of users manage all of the lists, the following command would be used.

This command will list all distribution lists starting with Muni and update the ManagedBy setting accordingly.

Get-DistributionGroup | where{$_.Name -like’muni*’} |Set-Distributiongroup –managedby user1,user2,user3

NOTE: This command will overwrite any existing settings


This entry was posted in Exchange. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s