Add Alias Email address (Bulk Mode)
In some scenario, we need to add an email address to all the users (Bulk mode). For example: organization that has a couple of public domain names.
The administrator wants to add each of the public domain names to each of the Office 365 recipients. In the following example, we add the “additional email address”
to Office 365 recipients. The “additional email address” will be based upon the user alias name, and the “suffix” of the email address will be “o365info.com”.
Note – before we can excite the PowerShell command, we will need to verify that the domain name was registered (added) to the Office 365 account.
PowerShell command Syntax
$Mailboxes = Get-Mailbox Foreach ($Mailbox in $Mailboxes) { $NewAddress = $Mailbox.Alias + "@o365info.com " $Mailbox.EmailAddresses += $NewAddress Set-Mailbox -Identity $Mailbox.Alias -EmailAddresses $Mailbox.EmailAddresses }
Commenti
Posta un commento