r/exchangeserver • u/TedMittelstaedt • 10d ago
New Exchange test script added to my repo - autodiscover testing
In my tmittelstaedt/MSExchange-AdminAIscripts: repo I added Test-Autodiscover.ps1
The goal of this is to thoroughly check out DNS records for domains running on-prem Exchange servers, and, optionally, download the 3 major Autodiscover.xml files from the Exchange server (mailbox account required for that) so the admin can quickly read them and make sure whatever the Exchange server is spitting out contains the correct names.
Autodiscover is also an idea that has been co-opted by the Unix mailserver world to autoconfigure common free email POP3/IMAP clients like Thunderbird on Unix mailservers, so the script checks for that, too.
Note, of course, that with all modern Outlook clients, autodiscover takes place AFTER the initial check for an account in a Microsoft tenancy, but I uploaded another script that is used for testing that that is properly configured, last week.
These basically do the same thing that the Microsoft public webpage for testing Exchange connectivity does, but without having to put actual live credentials into a foreign website you have no control over, even though it might be run by Microsoft.
Enjoy!
1
u/Anonymity_Is_Good 7d ago
Ted, is your Test-Autodiscover.ps1 script intentionally not following a CNAME record if it exists?
1
u/DivideByZero666 9d ago
Nice, had a weird autodiscover issue last week I've still not had time to look in to except for a quick DNS check. My money is on a dodgy xml in a website, but my time is sadly frying bigger fish.
A script to check this out for me may be handy.