How to Create a Remote Mailbox using Exchange Management Shell

Use below command to create remote mailbox, it will also create AD account.

New-RemoteMailbox -Name “UserADName” -DisplayName “UserDisplayName” -UserPrincipalName¬† “UserUserPrincipalName” -Alias “UserAlias” -PrimarySmtpAddress “UserPrimarySMTPAddress” -OnPremisesOrganizationalUnit “UserOUContainerPath” -FirstName “FirstName” -LastName “UserLastName”

In case User already exist in AD and Remote Mailbox Needed to enable, use below command:

Enable-RemoteMailbox -Identity “UserSAMAccountName” -Alias “UserAlias” -RemoteRoutingAddress Alias@O365DomainName.mail.onmicrosoft.com -PrimarySmtpAddress “UserPrimarySMTPAddress”

Leave a Reply

Your email address will not be published. Required fields are marked *