question

sc2111 avatar image
0 Votes"
sc2111 asked ·

exchange online mail user creation with powershell

we're migrating from gsuite to O365 exhange online per this doc
https://docs.microsoft.com/en-us/exchange/mailbox-migration/perform-g-suite-migration

We don't have an On-prem exchange server and AD is synchronized with AD Connector .
We created the users in Windows AD and got them synchronized to O365 .
Now we should " mail enable " them adding external smtp address for coexistence during migration

I didn't find ho can I complete the task via powershell having a CSV

thanks

office-exchange-server-administrationoffice-exchange-online-itprooffice-exchange-hybrid-itpro
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AshokM-8240 avatar image
0 Votes"
AshokM-8240 answered ·

Hi,

Based on my knowledge, since the user accounts are created in Active directory and synchronized with the Office 365 using AD Connect, Exchange server needs to be deployed for managing the mail attributes for those users and cannot be managed from Office 365. This is not because of Exchange hybrid but with the Active directory synchronization.

So, for creating the mail users, deploy the Exchange server and import the CSV because New-MailUser is an exchange command-let and requires exchange powershell.

May be you can install the Exchange server with trial license which will run for 180 days. You can complete the migration by that time and configure the Exchange Hybrid with Hybrid license in future. The reason for Exchange hybrid in future is, until the Active directory is synchronized with office 365, you need to have at least one exchange server on-premise for management of mail attributes.

25499-image.png


25457-image.png




https://docs.microsoft.com/en-us/exchange/decommission-on-premises-exchange


image.png (35.9 KiB)
image.png (22.5 KiB)
·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

michev avatar image
0 Votes"
michev answered ·

You cannot mail-enable users in O365, you need to create them as such from the start via the New-MailUser cmdlet or via the EAC as detailed here: https://docs.microsoft.com/en-us/exchange/recipients-in-exchange-online/manage-mail-users

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

sc2111 avatar image
0 Votes"
sc2111 answered ·

Thanks ,
I have managed to provision the mail-enabled account using the on-prem exchange and it correctly synchronized to O365 .
Now I have a doubt about the following steps , that would be the mailbox migration .
Reading the doc

"Once the Mail Users have been created in Microsoft 365, the Azure AD Connect may need to be disabled in order to allow the migration process to convert these users into mailboxes - see Turn off directory synchronization for Microsoft 365."

It looks a problem to me since we cannot stop the ADSync

· 5 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@sc2111

It's great that you can get useful information from above reply.
For your new issues, do you mean you have created mailboxes on on-premise Exchange for AD accounts? If so, you can check this article for how to Migrate mailboxes from Exchange Server. If you need further assistant, you can post a new question with more details to handle it specifically.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 Votes 0 ·

Hello LydiaZhou
no I mean that I "mail-enabled" the user , not mailbox enabled, as per the article .
Now the migration task should mailbox enable the user but it's said that we should disable the AD connector

0 Votes 0 ·

Yes, as the official document mentioned, when convert these mail users into mailboxes in O365, AAD Connect needs to be disabled. Why you cannot stop AD sync?
Only when AD synchronization is disabled, these users can be managed from O365 directly.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 Votes 0 ·
Show more comments