[EXCH2010/13/16] Autodiscovery and virtual directory setup

Microsoft related issues

[EXCH2010/13/16] Autodiscovery and virtual directory setup

Postby darkwiz » 16 Dec 2016 14:28

Get the current value
Code: Select all
Get-ClientAccessServer | fl Name,AutoDiscoverServiceInternalUri


Set the new value
Code: Select all
Set-ClientAccessServer -Identity SERVERNAME -AutoDiscoverServiceInternalUri https://mailserver.domain.net/Autodiscover/Autodiscover.xml


Get virtual directories
Code: Select all
Get-EcpVirtualDirectory | fl Name,InternalURL,ExternalURL
Get-WebServicesVirtualDirectory | fl Name,InternalURL,ExternalURL
Get-OwaVirtualDirectory | fl Name,InternalURL,ExternalURL
Get-ActiveSyncVirtualDirectory | fl Name,InternalURL,ExternalURL
Get-OabVirtualDirectory | fl Name,InternalURL,ExternalURL
Get-MapiVirtualDirectory | fl Name,InternalURL,ExternalURL


Set virtual directories
Code: Select all
$NETBIOS = "SERVERNAME"
$FQDN = "mailserver.domain.net"
Get-EcpVirtualDirectory -Server $NETBIOS | Set-EcpVirtualDirectory -InternalURL   "https://$($FQDN)/ecp" -ExternalURL   "https://$($FQDN)/ecp"
Get-WebServicesVirtualDirectory -Server $NETBIOS | Set-WebServicesVirtualDirectory -InternalURL "https://$($FQDN)/EWS/Exchange.asmx"   -ExternalURL "https://$($FQDN)/EWS/Exchange.asmx"
Get-OwaVirtualDirectory -Server $NETBIOS | Set-OwaVirtualDirectory -InternalURL   "https://$($FQDN)/owa" -ExternalURL   "https://$($FQDN)/owa"
Get-ActiveSyncVirtualDirectory -Server $NETBIOS | Set-ActiveSyncVirtualDirectory -InternalURL "https://$($FQDN)/Microsoft-Server-ActiveSync"   -ExternalURL "https://$($FQDN)/Microsoft-Server-ActiveSync"
Get-OabVirtualDirectory -Server $NETBIOS | Set-OabVirtualDirectory -InternalURL   "https://$($FQDN)/oab" -ExternalURL   "https://$($FQDN)/oab"
Get-MapiVirtualDirectory -Server $NETBIOS | Set-MapiVirtualDirectory -InternalURL   "https://$($FQDN)/mapi" -ExternalURL   https://$($FQDN)/mapi
pain is nothing a downpour won't erase
User avatar
darkwiz
Site Admin
 
Posts: 53
Joined: 14 Sep 2012 08:50

Return to Microsoft

Who is online

Users browsing this forum: No registered users and 1 guest

cron