SOLVED

Mailbox with multiple different aliases - identification mechanism?

Copper Contributor

Hello all,

We have Exchange 2103 on prem with approx. 1200 mailboxes.

We are trying to find a simple was (if possible) to find all mailboxes with an alias which has been added manually and is not linked to the username.

 

e.g.  firstname.surname1 is an alias and this users mailbox has multiple email addresses based on the domains we accept email for with this alias

we have manually added leavers email aliases to some accounts, so the mailbox above could have another email address of firstname.surname2

 

Is there a way of identifying these mailboxes without manually checking them all?

 

TIA, Andy 

2 Replies
best response confirmed by AndrewStory (Copper Contributor)
Solution

If you can define a robust set of criteria for aliases "added manually and not linked to the username", you can surely run a PowerShell script that goes over all mailboxes and returns matching ones. For example, this will return any objects that DO have at least one email address in the format FirstName.LastName:

 

Get-Recipient | % { if ($_.EmailAddresses -match "$($test.FirstName)" + "." + "$($test.LastName)" ) {$_} else {} }

Thanks Vasil, gives me something to work with!!

 

1 best response

Accepted Solutions
best response confirmed by AndrewStory (Copper Contributor)
Solution

If you can define a robust set of criteria for aliases "added manually and not linked to the username", you can surely run a PowerShell script that goes over all mailboxes and returns matching ones. For example, this will return any objects that DO have at least one email address in the format FirstName.LastName:

 

Get-Recipient | % { if ($_.EmailAddresses -match "$($test.FirstName)" + "." + "$($test.LastName)" ) {$_} else {} }

View solution in original post