Exchange Virtual Directory Config

. 'C:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1'Connect-ExchangeServer -auto -ClientApplication:ManagementShell 

$yeni="EXC1"


Get-WebServicesVirtualDirectory -Server $yeni |Set-WebServicesVirtualDirectory -InternalUrl  https://owa.xx.com/EWS/Exchange.asmx -ExternalUrl https://owa.xx.com/EWS/Exchange.asmx

Set-ClientAccessService -Identity $yeni -AutoDiscoverServiceInternalUri "https://owa.xx.com/Autodiscover/Autodiscover.xml"

Get-MapiVirtualDirectory -Server $yeni |Set-MapiVirtualDirectory -InternalUrl "https://owa.xx.com/mapi" -ExternalUrl https://owa.xx.com/mapi 

Get-OabVirtualDirectory -Server $yeni | Set-OabVirtualDirectory -InternalUrl https://owa.xx.com/OAB -ExternalUrl  https://owa.xx.com/OAB

Get-ActiveSyncVirtualDirectory -Server $yeni | Set-ActiveSyncVirtualDirectory -InternalUrl https://owa.xx.com/Microsoft-Server-ActiveSync -ExternalUrl https://owa.xx.com/Microsoft-Server-ActiveSync

Get-ECpVirtualDirectory -server $yeni | Set-EcpVirtualDirectory -InternalURL https://owa.xx.com/ecp -ExternalURL https://owa.xx.com/ecp

Get-owaVirtualDirectory -Server $yeni | Set-owaVirtualDirectory -InternalUrl https://owa.xx.com/owa -ExternalUrl https://owa.xx.com/owa 

Get-OutlookAnywhere -Server $yeni | Set-OutlookAnywhere -ExternalHostname "owa.xx.com" -ExternalClientsRequireSsl:$true -InternalHostname "owa.xx.com" -InternalClientsRequireSsl:$true -InternalClientAuthenticationMethod NTLM -ExternalClientAuthenticationMethod Negotiate 

Last updated