OWA Virtual Directory
Set-OWAVirtualDirectory –Identity “OWA (default web site)” -ExternalURL “https://mail.domainname.com/OWA”
Set-OWAVirtualDirectory –Identity “OWA (default web site)” -InternalURL “https://mail.domainname.com/OWA”
OAB Virtual Directory
Set-OABVirtualDirectory –Identity “OAB (default web site)” -ExternalURL “https://mail.domainname.com/OAB”
Set-OABVirtualDirectory –Identity “OAB (default web site)” -InternalURL “https://mail.domainname.com/OAB”
ECP Virtual Directory
Set-ECPVirtualDirectory –Identity “ECP (default web site)” -ExternalURL “https://mail.domainname.com/ECP”
Set-ECPVirtualDirectory –Identity “ECP (default web site)” -InternalURL “https://mail.domainname.com/ECP”
EWS Virtual Directory
Set-WebServicesVirtualDirectory –Identity “EWS (default web site)” -ExternalUrl “https://mail.domainname.com/ews/exchange.asmx”
Set-WebServicesVirtualDirectory –Identity “EWS (default web site)” -InternalUrl “https://mail.domainname.com/ews/exchange.asmx”
ActiveSync Virtual Directory
Set-ActiveSyncVirtualDirectory –Identity “Microsoft-Server-ActiveSync (default web site)” -ExternalURL “https://mail.domainname.com/Microsoft-Server-ActiveSync”
Set-ActiveSyncVirtualDirectory –Identity “Microsoft-Server-ActiveSync (default web site)” -InternalURL “https://mail.domainname.com/Microsoft-Server-ActiveSync”
Set-AutodiscoverVirtualDirectory -Identity ‘autodiscover (default Web site)’
Virtual directories can also be configured from ECP:
Login Into ECP –> Servers –> Virtual Directories