skip to Main Content

Find Exchange Server URLs with PowerShell

How to find the Exchange Server URLs? Why do you need to find the Exchange URLs in the first place? Let me give you an example. You are going to install a new Exchange Server in the organization. After installing, you like to configure the URLs. At the moment many Exchange Servers are running in the organization. You want to configure the new Exchange Server with the same URLs settings. If you don’t do it, users will not be able to use their email. That sounds bad, right? In this article, you will learn how to find the URLs with a PowerShell script.

Best way to find Exchange Server URLs

The best way to find the URLs is with PowerShell. Let first prepare the script, after that we will run the script. Download the GetExchangeURLs.ps1 script. Save the script in the C:\scripts\ folder of your Exchange Server. This script is my edit to the script made by Paul Cunningham. In the next step, we are going to run the script.

Find Exchange Server URLs with PowerShell

Run Exchange Management Shell as administrator. Change the directory to C:\scripts\. When running the command, place the Server name behind -Server. In my example, it will be .\GetExchangeURLs.ps1 -Server EX01-2016.

The script did run and the output is showing on the screen. The next step is to configure the URLs on the new Exchange Server.

Find Exchange Server URLs with EAC

You can find the URLs in Exchange Admin Center (EAC). Log into the EAC. Click servers and click on virtual directories. Select the Exchange Server in the Select server menu. In our example, it’s EX01-2016.exoip.local.

Double-click every item and find the Internal and External URL. Good to know is that you can’t find the Autodiscover (Default Web Site) URL in EAC. You have to find it with the GetExchangeURLs.ps1 script or Find autodiscover URL in Exchange with PowerShell.

Find Exchange Server URLs with PowerShell virtual directories

For Outlook Anywhere, we need to find the information in another place in EAC. Click servers  and click on servers. Double-click the name of the Exchange Server.

Find Exchange Server URLs with PowerShell server mailbox

Click Outlook Anywhere. Find the Internal and External URL including the authentication method.

Find Exchange Server URLs with PowerShell Outlook Anywhere

Conclusion

In this article, you learned how to find Exchange Server URLs with a PowerShell script. The script is here to make your life easier, use the script! The script can be useful if you are going to deploy Hybrid Exchange. Make sure that the Exchange Server URLs are setup correct before proceeding. Did you enjoy this article? You may also like Find autodiscover URL in Exchange with PowerShell. Don’t forget to follow us and share this article.

ALI TAJRAN

ALI TAJRAN

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. Read more »

This Post Has One Comment

Leave a Reply

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

Back To Top