Change Office 365 & SharePoint default domain name (Manual)
Posted On February 13, 2022
When a company changes it name, it would be nice if the SharePoint url can be changed to reflect the new company name. When you first signed up for Microsoft 365 you created an onmicrosoft.com domain. Even if you add custom domains, this domain will be used for SharePoint and OneDrive URLs.
This change only affects only SharePoint and OneDrive URLs. It does not change email addresses.
This option is only available for organizations with no more than 1000 total SharePoint sites and OneDrive accounts combined
When you rename your SharePoint domain, we create a redirect at the previous address
You can only change your domain once every six months.
You cannot change your SharePoint name back to the original name.
STEP 1: Check the availability of the new domain you want. For example, if you want your SharePoint and OneDrive URLs to begin with 2azurenl.sharepoint.com, enter https://2azurenl.sharepoint.com in a browser. If you get a message that the address couldn’t be found (404), it’s probably available. If you get a sign-in screen or a message that your username couldn’t be found in the 2azurenl.sharepoint.com directory, then the domain has already been taken and you’ll need to try a different one.
STEP 2: Go to https://aka.ms/SPORenameAddDomain , from there click on Add custom domain. Please do not use portal.azure.com and domains on the Azure Active directory page, as this will not allow the domain to be added!
STEP 3: Fill in the domain, make sure to use onmicrosoft.com
Once added, you should a screen similar to below. If you get a message that the domain isn’t available, try a different domain. If you get a message to create a TXT record, the domain isn’t added successfully.
In the overview pane it should look like below, If the status is NOT “Verified” then you will NOT be able to perform a rename.
STEP 4: Now we are going to use PowerShell to rename your domain.
Please be aware that changing the name is irreversible and might take up several hours to days depending on the number of sites and OneDrives. You should make this change during a low usage period like a weekend or holiday.
Open a PowerShell prompt and connect to SharePoint online (replace 2azure with your tenant link)