We are still on prem exchange 2016.
I need to bulk add one extra smtp with prefix like something.alias@domain.com
I would also point this to on OU in AD
My default email address policy ia pointing to all exchange users, so I would like to avoid that.
I looked into:
Get-User -OrganizationalUnit "OU" | % { Set-Mailbox $.UserPrincipalName -EmailAddresses @{add="$("something").$($.FirstName).$($_.LastName)@domain.com"}}
But we are using æ,ø and å here so that was not the way.
I tried to replace ($.FirstName).$($.LastName) with ($_.alias), but since that is an exchange attribute, no success.
Anyone got input to me? Is there a way to get-mailbox selected from OrganizationalUnit and return with something.alias@domain.com?
Thank you in advance