• Home
  • About
  • Blog
  • Training
  • Books
  • Contact
    • Email
    • Facebook
    • Twitter
    • RSS

Practical 365

  • Office 365
  • Exchange 2019
  • Exchange 2016
  • Exchange 2013
  • Hybrid
  • Certificates
  • PowerShell
  • Migration
You are here: Home / Exchange Server / PowerShell Script to Test Federated Domain Proof TXT Record for Hybrid Deployments

PowerShell Script to Test Federated Domain Proof TXT Record for Hybrid Deployments

August 10, 2015 by Paul Cunningham Leave a Comment

While running the Hybrid Configuration Wizard for an Exchange/Office 365 hybrid deployment one of the steps involves adding TXT records to your DNS zones to prove ownership of the domains being configured for federation.

There's a particular DNS host in Australia that I keep encountering that has a bug in their control panel. The TXT records often contain “+” characters, which this control panel bug removes. It's not the sort of thing that is easy to spot when you're squinting at your laptop screen, so I ended up writing a script to check it for me.

Download Test-FederatedDomainProof.ps1 from Github.

This PowerShell script is very simple to use. It requires the Exchange Management Shell, and you simply tell it which domain name you want to test and the script will query a Google DNS server for the TXT records for that domain and compare it to the string that is generated as the federated domain proof.

When the script runs you'll simply see a green or red message at the end indicating success or failure.

test-federated-domain-proof

Because of the way the proof string is generated you should run the script from within the Exchange organization that owns the domain.

Paul Cunningham

Paul is a Microsoft MVP for Office Apps and Services and a Pluralsight author. He works as a consultant, writer, and trainer specializing in Office 365 and Exchange Server.

Exchange Server Hybrid, Office 365, PowerShell, Scripts

Leave a Reply Cancel reply

You have to agree to the comment policy.

Recent Articles

  • How to configure custom branding for Office 365 Message Encryption
  • The clock is ticking on Exchange Server 2010
  • How to licence Exchange Hybrid servers
  • How to use the Azure Content Moderator in Office 365
  • Hybrid Agent & Exchange Modern Hybrid now available as a public preview
Practical 365

Training Courses

  • Configuring and Managing Office 365 Security
  • Office 365 Admin Playbook
  • Exchange 2016 Exam 70-345
  • Managing Exchange Mailboxes and Distribution Groups in PowerShell
  • More Training Courses...

Recommended Resources

  • Office 365 Security Resources
  • Office 365 Books
  • Exchange Server Books
  • Exchange Server Migrations
  • Exchange Analyzer
  • Digicert SSL Certificates

About This Site

Practical 365 is a leading site for Office 365 and Exchange Server news, tips and tutorials. Read more...
  • Email
  • Facebook
  • Twitter
  • RSS

Copyright © 2019 Quadrotech Solutions AG · Disclosure · Privacy Policy
Alpenstrasse 15, 6304 Zug, Switzerland

We are an Authorized DigiCert™ SSL Partner.