After installing exchange 2019 we’d like to configure a URL virtual directory is employed by Internet Information Services (IIS) to permit access to an Exchange ActiveSync, Outlook.
URL Virtual Directories
1- Open Exchange admin center.
Left side Select Servers and Select Virtual Directory to configure external access domain select the external access domain settings option.
2- On the configure external access domain click the Add + button.
3- Select the Exchange Exch2K19-1 server(s) you wish to configure external URLs on. Then click Add. Once you’ve got all the specified servers to click on ok.
So, in my Labe, I will just be configuring Exch2K19-1.
4- Enter the domain name you wish to use externally. In my case I want our external users to go to mail.xpertstec.com and click on Save.
5- This may take some time. So, once complete click on close.
6- Configure the ECP Virtual Directory.
Set-EcpVirtualDirectory -Identity “Exch2K19-1ECP (Default Web Site)” -ExternalUrl https://mail.xpertstec.com/ecp -InternalUrl https://mail.xpertstec.com/ecp
7- To verify the configuration of the ECP virtual directory, run the following command.
Get-EcpVirtualDirectory | Select Server,ExternalURL,InternalURL | fl
8- Exchange Admin Center > select Servers > to select Virtual Directories > select ecp (Default Web Site) and then select the edit button.
9- Type Internal & External URL and click on save.
10- Warning message, so click ok.
11- Configure the OWA Virtual Directory.
Set-OWAVirtualDirectory -identity “Exch2K19-1owa (Default Web Site)” -InternalURL https://mail.xpertstec.com/owa -ExternalURL https://mail.xpertstec.com/owa
12- To verify the OWA URL, run the following command.
Get-OwaVirtualDirectory | Select Server,ExternalURL,InternalURL | fl
13- Exchange Admin Center > select Servers > select Virtual Directories > select owa (Default Web Site) and then select the edit button.
14- Type Internal & External URL and click on save.
15- Configure the ActiveSync Virtual Directory.
Set-ActiveSyncVirtualDirectory -Identity “Exch2K19-1Microsoft-Server-ActiveSync (Default Web Site)” -ExternalUrl https://mail.xpertstec.com/Microsoft-Server-ActiveSync -InternalUrl https://mail.xpertstec.com/Microsoft-Server-ActiveSync
16- To verify the active sync configuration, run the following command.
Get-ActiveSyncVirtualDirectory | select server,externalurl,internalurl | fl
17- Exchange Admin Center > select Servers > select Virtual Directories > Select Microsoft Server ActiveSync (Default Web Site) and then select the edit button.
18- Type Internal & External URL and click on save.
19- Configure the OAB Virtual Directory.
Set-OabVirtualDirectory -Identity “Exch2K19-1OAB (Default Web Site)” -ExternalUrl https://mail.xpertstec.com/OAB -InternalUrl https://mail.xpertstec.com/OAB
20- To verify the OAB virtual directory URL configuration, run the following command.
Get-OabVirtualDirectory | Select Server,ExternalURL,InternalURL | fl
21- Exchange Admin Center > select Servers > select Virtual Directories > select OAB (Default Web Site) and then select the edit button.
22- Type Internal & External URL and click on save.
23- Configure Exchange Web Services (EWS) Virtual Directory.
Set-WebServicesVirtualDirectory -Identity “Exch2K19-1EWS (Default Web Site)” -ExternalUrl https://mail.xpertstec.com/EWS/Exchange.asmx -InternalUrl
24- To verify the configuration, run the following cmdlet.
Get-WebServicesVirtualDirectory | Select Server,ExternalURL,InternalURL | fl
25- Exchange Admin Center > select Servers > select Virtual Directories > Select EWS (Default Web Site) and then select the edit button.
26- Type Internal & External URL and then click on Save.
27- PowerShell Virtual Directory
Exchange Admin Center > select Servers > select Virtual Directories > select PowerShell (Default Web Site) and then select the edit button.
28- Type Internal & External URL and then click Save.
29- Configure Outlook Anywhere.
Set-OutlookAnywhere -Identity “Exch2K19-1RPC (Default Web Site)” -ExternalHostname mail.xpertstec.com -InternalHostname mail.xpertstec.com -ExternalClientsRequireSsl $true -InternalClientsRequireSsl $true -DefaultAuthenticationMethod NTLM
30- To verify Outlook anywhere configuration, run the following command.
Get-OutlookAnywhere | Select Server,ExternalHostname,Internalhostname | fl
31- Exchange Admin Center > select Servers > select Servers > select EXCH2K19-1 and select the edit button.
32- Select Outlook Anywhere Type Internal & External URL and click on save.
33- Configure the AutoDiscover Virtual Directory.
Set-ClientAccessService -Identity Exch2K19-1 -AutodiscoverServiceInternalUri https://autodiscover.xpertstec.com/autodiscover/autodiscover.xml
34- To verify, run the following cmdlet.
Get-ClientAccessService | fl identity,autodiscoverserviceinternaluri
35- Configure the MAPI Virtual Directory.
Set-MapiVirtualDirectory -Identity “Exch2K19-1mapi (Default Web Site)” -ExternalUrl https://mail.xpertstec.com -InternalUrl https://mail.xpertstec.com/mapi -IISAuthenticationMethods NTLM,Negotiate
36- To verify, run the following command.
Get-MapiVirtualDirectory | Select Server,ExternalURL,InternalURL | fl
For more information click here