Forum Discussion
AndrewStory
Nov 22, 2018Copper Contributor
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...
- 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 {} }
VasilMichev
Nov 22, 2018MVP
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 {} }
- AndrewStoryNov 23, 2018Copper Contributor
Thanks Vasil, gives me something to work with!!