Ammar's Blog

Configuring Exchange2013/2016/2019 Virtual Directories PowerShell Scripts

Microsoft Exchange

Configuring Exchange2013/2016/2019 Virtual Directories PowerShell Scripts

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

Leave your thought here

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Topics