How to configure Exchange 2016 Internal and External Url’s
Let’s look at how we can configure the Exchange 2016 Internal and External Url’s.
To get started we first need to verify what the current URLs is and then go ahead and modify them.
The following can be used to get the current URL’s used.
1 |
Get-OutlookAnywhere |Select InternalHostName,ExternalHostName |
1 |
Get-OWAVirtualDirectory |Select InternalURL,ExternalUrl |
1 |
Get-ECPVirtualDirectory |Select InternalUrl,ExternalUrl |
1 |
Get-OABVirtualDirectory |select InternalUrl,ExternalUrl |
1 |
Get-WebServicesVirtualDirectory |select InternalUrl,ExternalUrl |
1 |
Get-MapiVirtualDirectory |Select InternalUrl,ExternalUrl |
1 |
Get-ActiveSyncVirtualDirectory |Select InternalUrl,ExternalUrl |
1 |
Get-ClientAccessServer |Select AutoDiscoverServiceInternalUri |
As we can see the newly added Exchange 2016 server does not have the correct URL’s configured, to configure these URL’s we can you the following and run it the Management Shell.
Let’s start by configuring the Internal and External Hostnames for Outlook Anywhere.
1 2 |
Set-OutlookAnywhere -Identity "TCLEX16-01\Rpc (Default Web Site)" -InternalHostname Outlook.thatcloudlab.com -ExternalHostname Outlook.Thatcloudlab.com -ExternalClientsRequireSsl:$false -DefaultAuthenticationMethod NTLM -InternalClientsRequireSsl:$false -SSLOffloading:$true |
Let’s run the following to verify the new Internal and External Host Names
1 |
Get-OutlookAnywhere |select InternalHostName,ExternalHostname |
Now let’s move on and configure the URL’s for the OWA virtual directory.
1 2 3 |
Set-OwaVirtualDirectory -Identity "TCLEX16-01\owa (Default Web Site)" -InternalUrl https://outlook.thatcloudlab.com/owa -ExternalUrl https://outlook.thatcloudlab.com -DirectFileAccessOnPublicComputersEnabled:$false |
Let’s verify the newly created URL’s for OWA.
1 |
Get-OwaVirtualDirectory |select Name,InternalUrl,ExternalUrl |
Run the Following to set the URL’s for ECP
1 2 |
Set-EcpVirtualDirectory -Identity "TCLEX16-01\ecp (Default Web Site)" -ExternalUrl https://outlook.thatcloudlab.com/ecp -InternalUrl <a href="https://outlook.thatcloudlab.com/ecp">https://outlook.thatcloudlab.com/ecp</a> |
Run the following to set the URL’s for OAB
1 2 |
Set-OabVirtualDirectory -Identity "TCLEX16-01\OAB (Default Web Site)" -InternalUrl https://outlook.thatcloudlab.com/oab -ExternalUrl <a href="https://outlook.thatcloudlab.com/oab">https://outlook.thatcloudlab.com/oab</a> |
Run the following to set the URL’s for Web Services
1 2 3 |
Set-WebServicesVirtualDirectory -Identity "TCLEX16-01\EWS (Default Web Site)" -InternalUrl https://outlook.thatcloudlab.com/ews/exchange.asmx –ExternalUrl https://outlook.thatcloudlab.com/ews/exchange.asmx |
1 |
Get-WebServicesVirtualDirectory |Select InternalUrl,ExternalUrl |
Run the following to set the URL’s for MAPI
1 2 |
Set-MapiVirtualDirectory -Identity "TCLEX16-01\mapi (Default Web Site)" -InternalUrl https://outlook.thatcloudlab.com/mapi -ExternalUrl <a href="https://outlook.thatcloudlab.com/mapi">https://outlook.thatcloudlab.com/mapi</a> |
1 |
Get-MapiVirtualDirectory |Select InternalUrl,ExternalUrl |
Run the following to set the URL’s for ActiveSync
1 2 3 |
Set-ActiveSyncVirtualDirectory -Identity "TCLEX16-01\Microsoft-Server-ActiveSync (Default Web Site)" -InternalUrl https://outlook.thatcloudlab.com/Microsoft-Server-ActiveSync -ExternalUrl https://outlook.thatcloudlab.com/Microsoft-Server-ActiveSync |
1 |
Get-ActiveSyncVirtualDirectory |Select InternalUrl,ExternalUrl |
Run the following to set the URL’s for ClientAccessService
1 2 |
Set-ClientAccessService -AutoDiscoverServiceInternalUri https://outlook.thatcloudlab.com/Autodiscover/Autodiscover.xml -Identity TCLEXCAS01 |
1 |
Get-ClientAccessService |Select Identity,AutoDiscoverServiceInternalUri |
If you are like me and always looking for a quicker way to configure these services then you can use the following script created by PAUL from Practical 365 and can be downloaded from the TechNet website.
Configure Exchange 2016 URL’s By Paul Cunningham:
To sum it all up, in this post I have looked at have to configure Exchange 2016 Url’s using powershell.
#ThatLazyAdmin
Be First to Comment