How to verify Office 365 Email DNS entries on a custom domain using PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-1633644%22%20slang%3D%22en-US%22%3EHow%20to%20verify%20Office%20365%20Email%20DNS%20entries%20using%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1633644%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20PowerShell%20script%20that%20uses%20the%20Active%20Directory%20cmdlet%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EGet-AzureADDomainServiceConfigurationRecord%20-Name%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Edomain-name%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E...to%20retrieve%20the%20required%20DNS%20settings%20for%20a%20custom%20domain%20that%20I%20have%20added%20to%20Office%20365.%20The%20script%20then%20calls%20my%20Domain%20Hosting%20Provider%20to%20apply%20those%20DNS%20settings.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20I%20would%20like%20to%20tell%20Office%20365%20to%20go%20and%20check%20for%20those%20DNS%20entries%20and%20move%20the%20enrolled%20domain%20from%20an%20(as%20shown%20in%20the%20Office%20365%20Admin%20portal)%20%22incomplete%20setup%22%20to%20a%20%22healthy%22%20status%20so%20I%20can%20use%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20someone%20point%20me%20at%20the%20PowerShell%20cmdlet%20to%20do%20this%20DNS%20entries%20verification%20step%3F%20I%20have%20spent%20a%20lot%20of%20time%20searching%2C%20but%20to%20no%20avail.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20very%20much%2C%3C%2FP%3E%3CP%3ESimon.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1633644%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Regular Visitor

Hi,

 

I have a PowerShell script that uses the Active Directory cmdlet:

 

Get-AzureADDomainServiceConfigurationRecord -Name domain-name

 

...to retrieve the required DNS settings for a custom domain that I have added to Office 365. The script then calls my Domain Hosting Provider to apply those DNS settings.

 

Now I would like to tell Office 365 to go and check for those DNS entries and move the enrolled domain from an (as shown in the Office 365 Admin portal) "incomplete setup" to a "healthy" status so I can use it.

 

Can someone point me at the PowerShell cmdlet to do this DNS entries verification step? I have spent a lot of time searching, but to no avail.

 

Thanks very much,

Simon.

0 Replies