Find Exchange mailboxes with the same manager

This post is also available in: Polish

In previous post we described how to remove Team Calendar from Microsoft Outlook 2010 or 2013

Remove Team Calendar from Outlook

 

 

We wrote that team calendars are created from properties of user account in Active Directory, where you can select Manager for any AD account.

When you have the same manager as other AD account (user), you will see in Outlook Team Calendar with users who have the same manager as you.

If you don’t have to remove Outlook Team Calendar, you can check for mailboxes with same manager, and clean them if it’s wrong manager.

Below we present how to find mailboxes and mailboxes manager.

 

To find mailboxes with the same manager John VIP, you can use below command.
As a result you will get all mailboxes having John VIP as a manager.

Run this command in Exchange Management Shell:

Get-User -ResultSize unlimited | where {$_.manager.name -eq "John VIP"} | select name, recipienttype, RecipientTypeDetails

 

If you want to get list of all mailboxes and managers assigned to those mailboxes, you can use below powershell code:

get-user -resultsize unlimited | select name, @{Name ="Manager";Expression={$_.manager.name}}, RecipientType, RecipientTypeDetails

 

You will get list of all mailboxes, managers, recipienttype and recipienttypedetails.

If you have a lot of mailboxes, you can save this list to a file like below:

get-user -resultsize unlimited | select name, @{Name ="Manager";Expression={$_.manager.name}}, RecipientType, RecipientTypeDetails |Out-File d:\scripts\MailboxManagers.txt

 

 

Print Friendly
Tagged , , , . Bookmark the permalink.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>