Microsoft Exchange Server

Virtual Directories Configure External and Internal URL in Exchange 2013.

Virtual Directories Configure External and Internal URL in Microsoft Exchange Server 2013.

Virtual Directories Exchange 2013

Open Exchange Admin Center.

1- Select Servers > Virtual Directory and then select the External Access Domain settings button.

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

exchange 2013 external access domain

3- Select the Exchange 2013 server(s) you wish to configure external URLs on, Then click Add button, once you have all the required servers then click ok.

In my Labe, I will be able to just be configuring Exch2013-1 but you’ll select as many servers as you wish.

exchange 2013 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, then click Save.

exchange 2013 external access domain

5- This may take some time. Once complete so click close.

access domain

ECP Virtual Directory Exchange 2013

Set-ECPVirtualDirectory

Set-ECPVirtualDirectory –Identity “ECP (default web site)” -ExternalURL “https://mail.xpertstec.com/ECP”
Set-ECPVirtualDirectory –Identity “ECP (default web site)” -InternalURL https://mail.xpertstec.com/ECP”

Exchange Admin Center 2013 > select Servers > select Virtual Directories > select ecp (Default Web Site) and then click edit pin button.

exchange admin center

Select the General tab, type Internal & External URL and then click save.

exchange 2013 virtual directory ecp

OWA Virtual Directory Exchange 2013

Set-OwaVirtualDirectory

Set-OWAVirtualDirectory –Identity “OWA (default web site)” -ExternalURL “https://mail.xpertstec.com/OWA”
Set-OWAVirtualDirectory –Identity “OWA (default web site)” -InternalURL “https://mail.xpertstec.com/OWA”

Exchange Admin Center 2013 > select Servers > select Virtual Directories > Select owa (Default Web Site) and then click the edit pin button.

exchange admin center

Select the General tab, type Internal & External URL and then click Save.

exchange 2013 virtual directory owa

ACTIVESYNC Virtual Directory.

Set-ActiveSyncVirtualDirectory

Set-ActiveSyncVirtualDirectory –Identity “Microsoft-Server-ActiveSync (default web site)” -ExternalURL “https://mail.xpertstec.com/Microsoft-Server-ActiveSync”
Set-ActiveSyncVirtualDirectory –Identity “Microsoft-Server-ActiveSync (default web site)” -InternalURL https://mail.xpertstec.com/Microsoft-Server-ActiveSync

Admin Center 2013 > select Servers > select Virtual Directories > Select Microsoft Server ActiveSync (Default Web Site) and then click edit pin button.

exchange 2013 virtual directory

Select the General tab, type Internal & External URL and then click Save.

exchange 2013 virtual directory activesync

OAB Virtual Directory

Set-OABVirtualDirectory
Set-OABVirtualDirectory –Identity “OAB (default web site)” -ExternalURL “https://mail.xpertstec.com/OAB”
Set-OABVirtualDirectory –Identity “OAB (default web site)” -InternalURL “https://mail.xpertstec.com/OAB”

Exchange Admin Center 2013 > select Servers > seelct Virtual Directories > So, select owa (Default Web Site) and then click edit pin button.

exchange 2013 virtual directory

Type Internal & External URL and then click on Save.

exchange 2013 virtual directory oab

EWS Virtual Directory.

Set-WebServicesVirtualDirectory

Set-WebServicesVirtualDirectory –Identity “EWS (default web site)” -ExternalUrl “https://mail.xpertstec.com/ews/exchange.asmx”
Set-WebServicesVirtualDirectory –Identity “EWS (default web site)” -InternalUrl “https://mail.xpertstec.com/ews/exchange.asmx”

Exchange Admin Center 2013 > select Servers > select Virtual Directories > Select owa (Default Web Site) and then click edit pin button.

exchange 2013 virtual directory

Select the General tab, type Internal & External URL and then click on Save.

exchange 2013 virtual directory ews

POWERSHELL Virtual Directory.

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

exchange 2013 virtual directory

Select the General tab, type Internal & External URL and then click on Save.

exchange 2013 virtual directory powershell

OUTLOOK ANYWHERE

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

To confirm this change type the following. You will receive the output similar to that below.

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

Exchange Admin Center 2013 > select Servers > select Servers > Select Exchange server (EXCH2013-1) and then click the edit pin button.

exchange 2013 virtual directory

Select Outlook Anywhere tab, type Internal & External URL and then click on Save.

exchange 2013 virtual directory outlook anywhere

AUTODISCOVER

Set-AutodiscoverVirtualDirectory
Set-ClientAccessServer -Identity Exch2013-1 -AutoDiscoverServiceInternalUri https://autodiscover.xpertstec.com/Autodiscover/Autodiscover.xml
To view the changes type
Get-ClientAccessServer | FL AutoDiscoverServiceInternalUri
Not enabled as default. Please note that the autodiscover should be set as an A-record in your DNS. Also, note that you simply don’t provide an URL for this.
Set-AutodiscoverVirtualDirectory -Identity ‘autodiscover (default Web site)’

MAPI/HTTP

Not enabled as default. Requires Exchange 2013 SP1. Clients must be Outlook 2013 or newer. Fallback is OutlookAnywhere for older clients.
Set-MapiVirtualDirectory -Identity “mapi (Default Web Site)” -InternalUrl “https://mail.xpertstec.com/mapi” -IISAuthenticationMethods NTLM,Negotiate
After fixing the VirtualDirectory you would like to enable it:
Set-OrganizationConfig -MapiHttpEnabled $true

More Information click here

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 20 years of experience in administering Windows Servers, Exchange, VMWare, Veeam B&R, Veritas BackupExec.

Related Articles

Leave a Reply

Back to top button