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

Post popolari in questo blog

Come e quando smantellare i server Exchange in una distribuzione ibrida

Manage Room Mailbox by using PowerShell

How to reset an Office 365 install to the initial activation/install state