skip to Main Content

Configure autodiscover URL in Exchange with PowerShell

So you like to configure the autodiscover URL in Exchange Server with PowerShell. The best practice is to have it point to In one of the previous articles, we talked about how to Find autodiscover URL in Exchange with PowerShell. If you like to get the current information of the server URLs, read the article Find Exchange Server URLs with PowerShell.

The internal autodiscover can only be set through Exchange Management Shell. There is no option to configure it with the Exchange Admin Center.

Get autodiscover URL

Let’s get the autodiscover URL on the Exchange Servers that we want to change. Run Exchange Management Shell as administrator. Run the following command.

Now that we have the output, we can proceed further. We like to change the autodiscover URL on both the Exchange Servers EX01 and EX02.

Configure autodiscover URL

Configure autodiscover on both the Exchange Servers. Restart IIS with the command iisreset after the change of the autodiscover.

The difference between iisreset and issreset /noforce command
The /noforce parameter is recommended as a safeguard against data loss in case the IIS services cannot all be stopped within the one minute timeout period. If you are certain that it is safe to force IIS to restart, you can omit the /noforce parameter. In addition, if you are logged on locally, the computername parameter is not required. If you are administering an IIS server remotely, the computername parameter is the NetBIOS name of the computer on which you wish to restart IIS.

Verify the autodiscover URL

Verify the result after the autodiscover change.


If you are using Round-robin DNS. Add two CNAME records in the internal DNS server for Pointing to both the Exchange Servers EX01 and EX02. Assuming that both the Exchange Servers are the Client Access Servers (CAS).

If you are using a Load Balancer, create a VIP on the load balancer. Pointing to both the Exchange Servers EX01 and EX02. Assuming that both the Exchange Servers are the Client Access Servers (CAS). Add a CNAME record in the internal DNS server for Pointing to the load balancer.


In this article, you learned how to configure autodiscover URL in Exchange. It’s only possible to configure the internal autodiscover with Exchange Management Shell/PowerShell. First, check how the autodiscover URL is configured on the Exchange Server. The second step is to change the autodiscover and reset IIS after the change. Don’t forget to add a CNAME record. Did you enjoy this article? If so, you may like Pagefile Exchange 2019 best practice PowerShell. Don’t forget to follow us and share this article.



ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Connect with ALI TAJRAN on social media. Read more »

This Post Has 0 Comments

Leave a Reply

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

Back To Top