How to configure Exchange Server 2013 Virtual Directories

After you installed Exchange Server Certificate and enabled the services on Certificate like IIS, SMTP, UM etc. You will have configure the virtual directories so that you can access the resources like OWA, ECP, Autodiscover, ActiveSync, OutlookAnywhere from Exchange Server.
There are several articles available on the internet, still I thought of writing one [for myselft 😉 ]
Here is the list of commands you need to run to configure the different Virtual Directories. Run Get- commands to check if you have configured the Virtual Directories properly or not.

Exchange Control Panel:
Get-ecpVirtualDirectory -Server “ExchangeServerName” | Set-ecpVirtualDirectory -InternalURL -ExternalURL
Get-ECPVirtualDirectory -Server “ExchangeServerName” | Fl InternalURL,ExternalURL

Outlook Web App:
Get-OwaVirtualDirectory -Server “ExchangeServerName” | Set-OwaVirtualDirectory -InternalURL -ExternalURL
Get-OWAVirtualDirectory -Server “ExchangeServerName” | Fl internalUrl,ExternalURL

EWS (Exchange Web Services):
Get-WebservicesVirtualDirectory -Server “ExchangeServerName” | Set-WebservicesVirtualDirectory -InternalURL -ExternalURL
Get-WebservicesVirtualDirectory -Server “ExchangeServerName” |Fl internalURL,ExternalURL

Set-ClientAccessServer “ExchangeServerName” -AutodiscoverServiceInternalUri
Get-ClientAccessServer “ExchangeServerName” | Fl AutodiscoverServiceInternalUri

Get-ActiveSyncVirtualDirectory -Server “ExchangeServerName” | Set-ActiveSyncVirtualDirectory -InternalURL -ExternalURL
Get-ActiveSyncVirtualDirectory -Server “ExchangeServerName” | Fl InternalURL,ExternalURL

Offline Address Book:
Get-OABVirtualDirectory -Server “ExchangeServerName” | Set-OABVirtualDirectory -InternalUrl -ExternalURL
Get-OABVirtualDirectory -Server “ExchangeServerName” | Fl InternalURL,ExternalURL


Set-OutlookAnywhere -Identity “ExchangeServerName“Rpc (Default Web Site)” -InternalHostname -ExternalHostName -InternalClientAuthenticationMethod ntlm -InternalClientsRequireSsl:$True -ExternalClientAuthenticationMethod Basic -ExternalClientsRequireSsl:$True
Get-OutlookAnywhere -Identity “ExchangeServerName“rpc (Default Web Site)” |fl InternalHostName,InternalClientAuthenticationMethod,InternalClientsRequiressl,


About the Author

Gulab Prasad

Technology Consultant & Blogger

MCSE: Exchange Server 2016, 2013
MCSE: Skype for Business Server 2015
MCSE: Azure Productivity
MCSE: Windows Server 2016
MCSA: Windows Server 2012, Office 365
MCITP: Exchange Server 2010-2007 | Lync Server 2010
VMware: vSphere 6 Foundations