PowerShell Script To Add New E-Mail Alias and Set As Default

For this you need the Exchange powershell console open. Use the script below to set a new e-mail alias by OU to firstname.lastname@fqdn

Get-User -OrganizationalUnit “the ou name” | % {Set-Mailbox -Identity $_.identity -Alias (“{0}.{1}” -f $_.firstname, $_.lastname)}

Test the new setting per user:

get-user -identity “flast” | get-mailbox

 

Advertisements