Forum Discussion

AndrewStory's avatar
AndrewStory
Copper Contributor
Nov 22, 2018
Solved

Mailbox with multiple different aliases - identification mechanism?

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 l...
  • VasilMichev's avatar
    Nov 22, 2018

    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 {} }

Resources