Exchange 2013/16 Set Virtual Directories Notes

You can find all this info at many many blogs allover the internet, I just want to have a note here to have them gathered for ease.
Outlook Anywhare
Get-OutlookAnywhere | Select Server,ExternalHostname,Internalhostname
Get-OutlookAnywhere | Set-OutlookAnywhere -ExternalHostname mail.mydomain.com -InternalHostname mail.mydomain.com -ExternalClientsRequireSsl $true -InternalClientsRequireSsl $true -DefaultAuthenticationMethod NTLM
MAPI
Get-MapiVirtualDirectory | Select Server,ExternalURL,InternalURL | fl
Get-MAPIVirtualDirectory | Set-MAPIVirtualDirectory -ExternalUrl https://mail.mydomain.com/mapi -InternalUrl https://mail.mydomain.com/mapi
OWA
Get-OwaVirtualDirectory | Select Server,ExternalURL,InternalURL | fl
Get-OwaVirtualDirectory | Set-OwaVirtualDirectory -ExternalUrl https://mail.mydomain.com/owa -InternalUrl https://mail.mydomain.com/owa
ECP
Get-EcpVirtualDirectory | Set-EcpVirtualDirectory -ExternalUrl https://mail.mydomain.com/ecp -InternalUrl https://mail.mydomain.com/ecp
ActiveSync
Get-ActiveSyncVirtualDirectory | select server,externalurl,internalurl | fl
Get-ActiveSyncVirtualDirectory | Set-ActiveSyncVirtualDirectory -ExternalUrl https://mail.mydomain.com/Microsoft-Server-ActiveSync -InternalUrl https://mail.mydomain.com/Microsoft-Server-ActiveSync
EWS
Get-WebServicesVirtualDirectory | Select Server,ExternalURL,InternalURL | fl
Get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -ExternalUrl https://mail.mydomain.com/EWS/Exchange.asmx -InternalUrl https://mail.mydomain.com/EWS/Exchange.asmx
OAB
Get-OabVirtualDirectory | Select Server,ExternalURL,InternalURL | fl
Get-OabVirtualDirectory | Set-OabVirtualDirectory -ExternalUrl https://mail.mydomain.com/OAB -InternalUrl https://mail.mydomain.com/OAB
AUTODISCOVER SCP
Get-ClientAccessServer | Select Name,AutoDiscoverServiceInternalURI
Get-ClientAccessServer | Set-ClientAccessServer -AutoDiscoverServiceInternalUri https://mail.mydomain.com/Autodiscover/Autodiscover.xml
Share

Leave a Reply

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

8 − 5 =