Add gTLD domain to Office 365

If you try to add a generic top-level domain (gTLD) to Office365 you will probably get the below error…

“You’ve typed a domain name that includes an extension that is not valid. Type a domain name that includes .com or another valid extension.”

The solution to this is to add the domain through Powershell.



  • Run the “Windows Azure Active Directory Module for Powershell” as administratot

Enter the below commands

Set-ExecutionPolicy Remotesigned

Enter Y

$LiveCred = Get-Credential

You will be prompted for your office365 administrator credentials

Connect-MSOLservice -Credential $livecred

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $LiveCred -Authentication Basic -AllowRedirection

Import-PSSession $Session


New-MsolDomain -Name    

Get-MsolDomain -domain

Get-MSOLDomainVerificationDNS -DomainName -Mode DNSTXTRecord

This will give you the data needed to put into a DNS TXT record needed to prove domain ownership

Create DNS TXT record

You now need to create a DNS TXT record called “@” with data shown from the output of the above command. The value is shown next to the “Text :” field. I won’t go through the steps for this as they will be different depending on who manages the internet domain. An example is below.

Note that it might take a while for the new TXT record to be created.

Verify Domain Ownership

Logon to the Microsoft portal and navigate to the domains section as shown below.

Select “setup in progress” and then “start step 1”.

Then click “done, verify now”. As long as the TXT record has been created and made live this should work and your domain is now available for use.




Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.