Anavem
Languagefr
How to Change SharePoint Domain in Microsoft 365 Without Downtime

How to Change SharePoint Domain in Microsoft 365 Without Downtime

Rename your SharePoint Online domain using PowerShell commands and Microsoft's native tools. Complete step-by-step guide with monitoring and verification.

April 15, 2026 15 min
mediumsharepoint 8 steps 15 min

Why Change Your SharePoint Domain in Microsoft 365?

Organizations often need to rename their SharePoint Online domain to align with rebranding initiatives, mergers, acquisitions, or simply to adopt a more professional domain name. Microsoft 365 provides a built-in tenant rename feature that allows you to change your SharePoint domain from something like oldcompany.sharepoint.com to newcompany.sharepoint.com without requiring a full tenant-to-tenant migration.

What Does the SharePoint Domain Rename Process Involve?

The SharePoint Online tenant rename feature changes both your main SharePoint domain (tenant.sharepoint.com) and your OneDrive domain (tenant-my.sharepoint.com) to use a new .onmicrosoft.com domain as the base. This is an in-place rename operation that preserves all your data, permissions, and configurations while updating the underlying URLs.

The process uses PowerShell cmdlets and requires careful planning since it causes temporary site inaccessibility during the rename operation. The duration depends on your site count but can range from several hours to multiple days for larger tenants.

What Are the Key Requirements and Limitations?

Microsoft imposes several important limitations on the domain rename feature. Your tenant must have 10,000 or fewer total sites (including SharePoint sites, OneDrive accounts, and SharePoint Embedded containers). The tenant cannot be configured for Microsoft 365 Multi-Geo, and you can only perform one rename per tenant without opening a support request.

The rename operation requires Windows (Mac is not supported) and the latest SharePoint Online Management Shell. You must schedule the rename between 24 hours and 30 days in advance, and the new domain must be added and verified through Microsoft's specialized domain addition tool rather than the standard admin center process.

Implementation Guide

Full Procedure

01

Verify Domain Eligibility and Add New Domain

Before starting the rename process, confirm your tenant meets all requirements and add your new domain through Microsoft's specialized tool.

Navigate to the official domain addition tool at https://aka.ms/SPORenameAddDomain. This is different from the standard "Add domain" process in the Microsoft 365 admin center.

Click Add custom domain and enter your full new domain name (for example, newtenant.onmicrosoft.com). Select Add domain to proceed.

Warning: Do not use the standard domain addition process or set this as a fallback domain. Only use the specialized tool linked above.

After adding the domain, verify it appears with a verified status on the Custom domain names page. The verification process typically takes a few minutes.

Verification: Check that your new domain shows as "Verified" in the Microsoft 365 admin center under Settings > Domains. The status must be verified before proceeding.

Also confirm your tenant eligibility by checking your total site count. Run this PowerShell command after connecting (covered in the next step):

Get-SPOSite -Limit All | Measure-Object | Select-Object Count

The count must be 10,000 or fewer total sites.

02

Install Latest SharePoint Online Management Shell

The domain rename feature requires the latest version of SharePoint Online Management Shell. Older versions may not include the necessary cmdlets.

First, uninstall any existing versions to avoid conflicts. Open PowerShell as Administrator and run:

Uninstall-Module Microsoft.Online.SharePoint.PowerShell -Force -AllVersions

You can also remove old versions through Windows Settings > Apps > Apps & features, searching for "SharePoint Online Management Shell".

Download the latest SharePoint Online Management Shell from the official Microsoft download page. Visit the Microsoft documentation at https://learn.microsoft.com/en-us/sharepoint/change-your-sharepoint-domain-name and follow the download link for the current 2026 version.

Install the downloaded package with administrator privileges. Accept all default installation options.

Pro tip: Always run the installation as Administrator to ensure proper registration of PowerShell modules and cmdlets.

Verification: Open a new PowerShell window as Administrator and run:

Get-Module -ListAvailable -Name Microsoft.Online.SharePoint.PowerShell

You should see the module listed with the current version number (2026.x.x or later).

03

Connect to SharePoint Online PowerShell

Establish a PowerShell connection to your SharePoint Online tenant using your current domain name.

Open PowerShell as Administrator and connect to your SharePoint admin center:

Connect-SPOService -Url "https://tenantname-admin.sharepoint.com"

Replace tenantname with your current tenant name. For example, if your current SharePoint URL is contoso.sharepoint.com, use:

Connect-SPOService -Url "https://contoso-admin.sharepoint.com"

You'll be prompted to sign in with your SharePoint Administrator or Global Administrator credentials. Complete the authentication process.

Verification: Test your connection by running a simple command:

Get-SPOTenant | Select-Object SharingCapability

This should return your tenant's sharing settings without errors. If you see permission errors, verify you have the correct administrator role assigned.

Warning: The connection session will timeout after a period of inactivity. If you encounter authentication errors during the rename process, reconnect using the same command.
04

Schedule the Domain Rename Operation

The domain rename must be scheduled between 24 hours and 30 days in the future. Plan this during low-usage periods like weekends.

Use the Start-SPOTenantRename cmdlet with your new domain name and scheduled time:

Start-SPOTenantRename -DomainName "newtenant" -ScheduledDateTime "2026-04-20T02:00:00"

Replace newtenant with the domain part before .onmicrosoft.com. For example, if your new domain is fabrikam.onmicrosoft.com, use fabrikam.

The ScheduledDateTime parameter uses your local machine's time zone. Format it as YYYY-MM-DDTHH:MM:SS (24-hour format).

Pro tip: Use the -WhatIf parameter first to preview the operation without executing it: Start-SPOTenantRename -DomainName "newtenant" -ScheduledDateTime "2026-04-20T02:00:00" -WhatIf

Before the scheduled time, notify all users that SharePoint sites and OneDrive will be temporarily inaccessible. The duration depends on your site count but can range from hours to days.

Verification: Confirm the rename is scheduled by running:

Get-SPOTenantRenameStatus

You should see status information including the scheduled date and current state (typically "Scheduled" initially).

05

Monitor the Rename Progress

Once the scheduled time arrives, the rename process begins automatically. Monitor progress using PowerShell commands to track overall status and individual site progress.

Check the overall tenant rename status regularly:

Get-SPOTenantRenameStatus

This returns information about the current phase, progress percentage, and any errors encountered. The process goes through several phases: Queued, InProgress, and Completed.

For detailed site-by-site progress, check individual sites:

Get-SPOSiteRenameState -Identity "https://oldtenant.sharepoint.com/sites/sitename"

Replace the URL with actual site URLs from your tenant. This shows whether each site has been renamed successfully.

You can also get a list of all sites and their rename status:

Get-SPOSite -Limit All | ForEach-Object { Get-SPOSiteRenameState -Identity $_.Url }
Warning: During the rename process, users cannot access SharePoint sites or OneDrive. Office applications may show save errors. New site creation, OneDrive provisioning, and Teams channel creation are blocked.

Verification: The rename is complete when Get-SPOTenantRenameStatus shows a "Completed" status and all individual sites show successful rename states.

06

Update Firewall Rules and Network Configuration

After the rename completes, update your organization's network infrastructure to accommodate the new domain URLs.

Update firewall rules to allow traffic to the new SharePoint domains. Add these URL patterns to your firewall allowlists:

*.newtenant.sharepoint.com
*.newtenant-my.sharepoint.com
*.newtenant-files.sharepoint.com

Replace newtenant with your actual new domain name.

If your organization uses proxy servers, update the proxy configuration to include the new domain patterns. Most enterprise proxies require explicit allowlisting of SharePoint domains.

Update browser trusted sites settings in Group Policy or individual browser configurations. Add the new SharePoint domains to the trusted sites zone:

https://*.newtenant.sharepoint.com
https://*.newtenant-my.sharepoint.com
Pro tip: Keep the old domain rules active for 24-48 hours after the rename to handle any cached connections or delayed updates in Office applications.

Verification: Test network connectivity by accessing a SharePoint site from different network locations. Use tools like nslookup or ping to verify DNS resolution:

nslookup newtenant.sharepoint.com

The command should return valid IP addresses for the new domain.

07

Update Applications and Custom Scripts

Identify and update all applications, scripts, and integrations that reference the old SharePoint domain URLs.

Search your codebase for hardcoded SharePoint URLs. Common patterns to find include:

grep -r "oldtenant.sharepoint.com" /path/to/your/code/
grep -r "oldtenant-my.sharepoint.com" /path/to/your/code/

Update PowerShell scripts that connect to SharePoint. Change connection URLs from:

# Old URL
Connect-PnPOnline -Url "https://oldtenant.sharepoint.com/sites/sitename"

# New URL
Connect-PnPOnline -Url "https://newtenant.sharepoint.com/sites/sitename"

Update SharePoint Framework (SPFx) solutions and Power Platform applications. Check these common configuration files:

  • config/serve.json in SPFx projects
  • Power Automate flow connections
  • Power Apps data source connections
  • Azure AD app registrations with SharePoint redirect URIs

For SharePoint lists and libraries with absolute URL references, use PowerShell to find and update them:

$sites = Get-SPOSite -Limit All
foreach ($site in $sites) {
    Write-Host "Checking site: $($site.Url)"
    # Add your specific URL checking logic here
}
Warning: Absolute URLs in SharePoint content (like hyperlinks in list items) are not automatically updated. These require manual review and updating.

Verification: Test all updated applications and scripts against the new domain. Run automated tests if available, and manually verify critical integrations work correctly.

08

Verify Office.com Integration and eDiscovery

Complete the post-rename verification by checking Office.com integration and updating any eDiscovery configurations.

Office.com URLs may take up to 24 hours to reflect the new domain. Check that SharePoint sites appear correctly in the Office.com app launcher by visiting https://www.office.com and clicking the SharePoint tile.

If your organization uses eDiscovery holds, update the content location URLs. In the Microsoft Purview compliance portal:

  1. Navigate to eDiscovery > Core or Advanced eDiscovery
  2. Review existing holds and cases
  3. Update SharePoint site URLs in hold policies
  4. Verify OneDrive locations are updated automatically

Check that Microsoft Teams channels with SharePoint integration work correctly. Test file sharing and document collaboration in Teams channels.

Verify OneDrive sync client functionality. Users may need to reconnect their OneDrive sync clients:

%localappdata%\Microsoft\OneDrive\onedrive.exe /reset

After running the reset command, users should sign in again to reestablish sync with the new domain.

Pro tip: Create a communication plan to inform users about the domain change and provide instructions for reconnecting OneDrive sync if needed.

Verification: Perform end-to-end testing of key scenarios:

  • Access SharePoint sites from Office.com
  • Upload and download files from OneDrive
  • Share documents externally (if enabled)
  • Access SharePoint from mobile apps

Run this final PowerShell command to confirm all sites are accessible with the new domain:

Get-SPOSite -Limit All | ForEach-Object { 
    try { 
        Get-SPOSite -Identity $_.Url -ErrorAction Stop
        Write-Host "✓ $($_.Url)" -ForegroundColor Green
    } catch {
        Write-Host "✗ $($_.Url) - Error: $($_.Exception.Message)" -ForegroundColor Red
    }
}

Frequently Asked Questions

Can I rename my SharePoint domain multiple times in Microsoft 365?+
No, Microsoft allows only one domain rename per tenant without opening a support request. This is a permanent limitation of the SharePoint Online tenant rename feature. If you need additional renames, you must contact Microsoft support, but approval is not guaranteed. Plan your new domain name carefully since you cannot easily revert or change it again.
How long does the SharePoint domain rename process take to complete?+
The rename duration depends on your total site count and can range from several hours to multiple days. Tenants with fewer than 1,000 sites typically complete within 24 hours, while larger tenants approaching the 10,000 site limit may take several days. During this time, all SharePoint sites and OneDrive accounts are temporarily inaccessible to users.
Will the SharePoint domain rename affect my Microsoft Teams integration?+
Yes, Teams channels with SharePoint integration will be temporarily affected during the rename process. After completion, Teams will automatically reconnect to the renamed SharePoint sites. However, you should test file sharing and document collaboration in Teams channels to ensure everything works correctly. Some Teams apps or custom integrations may require manual updates to reference the new domain URLs.
What happens to external sharing links during a SharePoint domain rename?+
External sharing links using the old domain will break after the rename completes. Microsoft does not automatically redirect old sharing links to the new domain. You must regenerate and redistribute any external sharing links that were created before the rename. This includes anonymous sharing links, guest user invitations, and embedded document links shared outside your organization.
Can I perform a SharePoint domain rename if my tenant uses Multi-Geo?+
No, SharePoint Online tenant rename is not supported for tenants configured for Microsoft 365 Multi-Geo. This includes tenants that were previously configured for Multi-Geo, even if the feature is currently disabled. If you need to rename a Multi-Geo tenant, you must contact Microsoft support to discuss alternative migration options, which typically involve a full tenant-to-tenant migration rather than an in-place rename.

Discussion

Share your thoughts and insights

Sign in to join the discussion