question

Chapter7-2723 avatar image
0 Votes"
Chapter7-2723 asked Chapter7-2723 commented

Remove custom domain from o365 tenant

Hi,

I am doing o365 tenant to tenant migration including everything.

Now I want to remove my custom domain from the source tenant. Can you please guide me what should I preparing before migration? thanks

office-exchange-online-itprooffice-sharepoint-server-administrationoffice-onedrive-client-itpro
5 |1600 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.

1 Answer

CaseyYangMSFT-4714 avatar image
0 Votes"
CaseyYangMSFT-4714 answered Chapter7-2723 commented

Hi @Chapter7-2723,

1.Change user UPNs to onmicrosoft.com. Always do that step first, before starting removal of email addresses. The step can be easlily automated.
2.Remove email addresses containing vanity domain from user mailboxes, mail users, groups. Again there are scripts on the internet that allow you automated removal.
3.Then in the admin center, go to the Settings > Domains page, select the domain that you want to remove.

For More Details: Office 365 Tenant to Tenant Migration: Domain removal techniques
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

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.


· 4
5 |1600 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.

Hi,

> 1.Change user UPNs to onmicrosoft.com. Always do that step first, before starting removal of email addresses. The step can be easlily automated.

My all accounts already have Alias with onmicrosoft.com. Because when I migrated all users that time I used source and destination onmicrosoft.com Alias. Are you talking about this?

> 2.Remove email addresses containing vanity domain from user mailboxes, mail users, groups. Again there are scripts on the internet that allow you automated removal.

Can we do it on portal? Can you help to send that script?


> 3.Then in the admin center, go to the Settings > Domains page, select the domain that you want to remove.

When I will remove my custom domain. After removal my accounts will stay there with onmicrosoft.com?

Regards,



















0 Votes 0 ·

Hi @Chapter7-2723,

Here is some arctiels for reference:

SharePoint Online: Remove User from Site Collection using PowerShell
Remove Domain from Office 365 Best Method How to Guide

Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.




0 Votes 0 ·

Hi,

I have 150 users mailboxes. 30 shared and resource mailboxes, one drive and teams.

According to the above article, I should take a backup for all services before removing the custom domain.

Can you tell me the powershell script or GUI for the backup?


/Hassan

0 Votes 0 ·

Hi @Chapter7-2723,

Per my research, i didn't figure out how to remove multiple mailboxes with powershell. I suggest you create a service request with Microsoft for furthur help about how to remove custom domain.

0 Votes 0 ·