Get exchange group manager
One of the most requested feature or information is the ability to get exchange group manager. This becomes handy when you want to make sure every distribution group has a manager.
When you do distribution group cleanup, or migration to Office 365 groups, you want first to list your groups, and then question if this group is still valid or in use. Of course, you cannot do this decision yourself, and you start questioning who is the owner or manager of each group. Get exchange group manager script will help you quickly identify the manager of each distribution group, so you can easily have an idea of the group owner.
Another scenario is a cleanup job. Some people resign from your company, and perhaps they are assigned as group owners in many distribution groups. When they leave the company, groups they manage become suddenly without an owner. Get exchange group manager script will help you quickly identify groups without owner.
Finally, you do not want to manage the membership of all your distribution groups. Assigning a manager for each group would make more sense. To start the exercise of identifying group managers and delegating membership modification to them, you need this script to identify who manages what initially.
The script is simple, just run it from Exchange management shell, and give it the following parameters:
- File [required]: the csv file name and path to save the output csv.
- OU [optional]: used to narrow the scope of the script to a certain OU.
You can download the script from Microsoft TechNet Gallery.
Get managers of all groups and export results to c:\files.csv.
Get-ExchangeDGManagers -file "c:\file.csv"
Get managers of all groups under the specified OU.
Get-ExchangeDGManagers -OU "ou=mailing groups, dc = contoso, dc=com" -file "c:\file.csv"
Download the script
You can find the script from Microsoft TechNet Gallery
Blog Post Notification
Be the first to get notification when key blog post articles are released. No marketing material.
Thank you for you help on this. I need something that will only get the DLs owned by a list of usersname i’ve got in a CSV file. If it would make things easier, I have the OU path for the each user.
Not sure if it helps but we’re running Exchange 10.
Well I need unique values so if you have samaccountnames in a list, this could help,else, tell me and will do my best 🙂