in

External & Internal URL Virtual Directory Setup Exchange Server 2019

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.

exchange 2019 virtual directory

2- On the configure external access domain click the Add + button.

exchange 2019 external access domain

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.

exchange 2019 configure external access domain

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.

external access domain exchange 2019

5- This may take some time. So, once complete click on close.

access domain

6- Configure the ECP Virtual Directory.

Set-EcpVirtualDirectory -Identity “Exch2K19-1\ECP (Default Web Site)” -ExternalUrl https://mail.xpertstec.com/ecp -InternalUrl https://mail.xpertstec.com/ecp

set ecpvirtualdirectory command

7- To verify the configuration of the ECP virtual directory, run the following command.

Get-EcpVirtualDirectory | Select Server,ExternalURL,InternalURL | fl

get ecpvirtualdirectory command

8- Exchange Admin Center > select Servers > to select Virtual Directories > select ecp (Default Web Site) and then select the edit button.

exchange 2019 virtual directory

9- Type Internal & External URL and click on save.

virtual directory ecp url exchange 2019

10- Warning message, so click ok.

ecp url virtual directory warning

11- Configure the OWA Virtual Directory.

Set-OWAVirtualDirectory -identity “Exch2K19-1\owa (Default Web Site)” -InternalURL https://mail.xpertstec.com/owa -ExternalURL https://mail.xpertstec.com/owa

set owavirtualdirectory command

12- To verify the OWA URL, run the following command.

Get-OwaVirtualDirectory | Select Server,ExternalURL,InternalURL | fl

get owavirtualdirectory command

13- Exchange Admin Center > select Servers > select Virtual Directories > select owa (Default Web Site) and then select the edit button.

exchange 2019 virtual directory

14- Type Internal & External URL and click on save.

exchange 2019 virtual directory owa

15- Configure the ActiveSync Virtual Directory.

Set-ActiveSyncVirtualDirectory -Identity “Exch2K19-1\Microsoft-Server-ActiveSync (Default Web Site)” -ExternalUrl https://mail.xpertstec.com/Microsoft-Server-ActiveSync -InternalUrl https://mail.xpertstec.com/Microsoft-Server-ActiveSync

set-activesyncvirtualdirectory command

16- To verify the active sync configuration, run the following command.

Get-ActiveSyncVirtualDirectory | select server,externalurl,internalurl | fl

get-ActiveSyncVirtualDirectory command

17- Exchange Admin Center > select Servers > select Virtual Directories > Select Microsoft Server ActiveSync (Default Web Site) and then select the edit button.

exchange 2019 virtual directory

18- Type Internal & External URL and click on save.

exchangexchange 2019 virtual directory activesync

19- Configure the OAB Virtual Directory.

Set-OabVirtualDirectory -Identity “Exch2K19-1\OAB (Default Web Site)” -ExternalUrl https://mail.xpertstec.com/OAB -InternalUrl https://mail.xpertstec.com/OAB

set oabvirtualdirectory command

20- To verify the OAB virtual directory URL configuration, run the following command.

Get-OabVirtualDirectory | Select Server,ExternalURL,InternalURL | fl

get oabvirtualdirectory command

21- Exchange Admin Center > select Servers > select Virtual Directories > select OAB (Default Web Site) and then select the edit button.

exchange 2019 virtual directory

22- Type Internal & External URL and click on save.

exchange 2019 virtual directory oab

23- Configure Exchange Web Services (EWS) Virtual Directory.

Set-WebServicesVirtualDirectory -Identity “Exch2K19-1\EWS (Default Web Site)” -ExternalUrl https://mail.xpertstec.com/EWS/Exchange.asmx -InternalUrl https://mail.xpertstec.com/EWS/Exchange.asmx

set webservicesvirtualdirectory command

24- To verify the configuration, run the following cmdlet.

Get-WebServicesVirtualDirectory | Select Server,ExternalURL,InternalURL | fl

get webservicesvirtualdirectory command

25- Exchange Admin Center > select Servers > select Virtual Directories > Select EWS (Default Web Site) and then select the edit button.

exchange 2019 virtual directory

26- Type Internal & External URL and then click on Save.

exchange 2019 virtual directory ews

27- PowerShell Virtual Directory

Exchange Admin Center > select Servers > select Virtual Directories > select PowerShell (Default Web Site) and then select the edit button.

exchange 2019 virtual directory

28- Type Internal & External URL and then click Save.

exchange 2019 virtual directory powershell

29- Configure Outlook Anywhere.

Set-OutlookAnywhere -Identity “Exch2K19-1\RPC (Default Web Site)” -ExternalHostname mail.xpertstec.com -InternalHostname mail.xpertstec.com -ExternalClientsRequireSsl $true -InternalClientsRequireSsl $true -DefaultAuthenticationMethod NTLM

configure outlook anywhere command

30- To verify Outlook anywhere configuration, run the following command.

Get-OutlookAnywhere | Select Server,ExternalHostname,Internalhostname | fl

get outlookanywhere command

31- Exchange Admin Center > select Servers > select Servers > select EXCH2K19-1 and select the edit button.

exchange admin center 2019

32- Select Outlook Anywhere Type Internal & External URL and click on save.

exchange 2019 virtual directory outlook anywhere

33- Configure the AutoDiscover Virtual Directory.

Set-ClientAccessService -Identity Exch2K19-1 -AutodiscoverServiceInternalUri https://autodiscover.xpertstec.com/autodiscover/autodiscover.xml

set clientaccessservice command

34- To verify, run the following cmdlet.

Get-ClientAccessService | fl identity,autodiscoverserviceinternaluri

get clientaccessservice command

35- Configure the MAPI Virtual Directory.

Set-MapiVirtualDirectory -Identity “Exch2K19-1\mapi (Default Web Site)” -ExternalUrl https://mail.xpertstec.com -InternalUrl https://mail.xpertstec.com/mapi -IISAuthenticationMethods NTLM,Negotiate

set mapivirtualdirectory command

36- To verify, run the following command.

Get-MapiVirtualDirectory | Select Server,ExternalURL,InternalURL | fl

get mapivirtualdirectory command

For more information click here

Written by Jamil Parvez

Jamil Pervez works as a Network Administrator, based in Kuwait with a Primary focus on Microsoft technologies. Microsoft Certified MCSE, MCTP, MCITP, CCNP, CCIP, CCVP with 18 years experience in administering Windows Servers, Exchange, VMWare, Veeam B&R, Veritas BackupExec.

48 Comments

Leave a Reply
  1. It’s in point of fact a nice and helpful piece of info.
    I’m glad that you simply shared this helpful info with us. Please stay us up to date like this. Thanks for sharing.

  2. Saved as a favorite, I love your web site! Ahaa, its nice dialogue regarding this post at this place at this website,
    I have read all that, so now me also commenting here.

  3. For most recent information you have to pay a visit the
    web and on web I found this web page as a most excellent web site for latest updates.

  4. When someone writes an article he/she maintains the thought
    of a user in his/her mind that how a user can be aware of it.
    So that’s why this article is great. Thanks!

  5. Greetings! Very useful advice within this article!
    It’s the little changes that make the most significant changes.
    Many thanks for sharing!

  6. Very good written article. It will be beneficial to anybody who employess it, including yours truly :). Keep up the good work – for sure I will check out more posts.

  7. Right here is the right web site for anybody who really wants to find out about this topic.
    You know so much its almost tough to argue with you (not that I
    actually would want to?HaHa). You certainly put a new spin on a topic which has been discussed for decades. Excellent stuff, just excellent!

  8. Hi there, I discovered your website by means of Google at the same time as searching for a comparable topic, your web site came up, it appears good. I have bookmarked it in my google bookmarks.

  9. I think this is among the most vital information for me.
    And I’m glad to read your article. But wanna remark on a few general
    things, The site style is wonderful, the articles are really excellent : D.
    Good job, cheers

  10. Heya, I am just the very first time here. I found this board
    and that I find It really useful & it helped me out much.
    I hope to provide something back and aid others such as you helped me.

  11. Hey there! Would you mind if I share your blog with my zynga group?
    There’s a lot of folks that I think would really enjoy your content.
    Please let me know. Thanks

  12. This is the right site for everyone who wants to find out about this topic.
    You understand so much its almost hard to argue with you
    (not that I personally will need to?HaHa). You certainly put a
    new spin on a subject which has been discussed for decades.
    Wonderful stuff, just great!

  13. I simply want to mention I’m beginner to blogs and actually savored your web page. Very likely I’m likely to bookmark your blog . You actually come with great well written articles. With thanks for sharing your web page.

Leave a Reply

Step by Step Installation of Exchange Server 2019

How to configure Outlook Anywhere in Exchange server 2019