begin {
$exchhost = Read-Host 'Enter the hostname'
$server = Read-Host 'Enter the server name'
$ErrorActionPreference = 'Stop'
}
process {
try {
Write-Host 'Setting OWAVirtualDirectory to: '"https://$exchhost/OWA"
Get-OWAVirtualDirectory -Server $server | Set-OWAVirtualDirectory -ExternalURL "https://$exchhost/OWA" -InternalURL "https://$exchhost/OWA" -WarningAction silentlycontinue
Write-Host 'Setting OABVirtualDirectory to: '"https://$exchhost/OAB"
Get-OABVirtualDirectory -Server $server | Set-OABVirtualDirectory -ExternalURL "https://$exchhost/OAB" -InternalURL "https://$exchhost/OAB"
Write-Host 'Setting WebServicesVirtualDirectory to: '"https://$exchhost/ews/exchange.asmx"
Get-WebServicesVirtualDirectory -Server $server | Set-WebServicesVirtualDirectory -ExternalURL "https://$exchhost/ews/exchange.asmx" -InternalURL "https://$exchhost/ews/exchange.asmx"
Write-Host 'Setting ActiveSyncVirtualDirectory to: '"https://$exchhost/Microsoft-Server-ActiveSync"
Get-ActiveSyncVirtualDirectory -Server $server | Set-ActiveSyncVirtualDirectory -ExternalURL "https://$exchhost/Microsoft-Server-ActiveSync" -InternalURL "https://$exchhost/Microsoft-Server-ActiveSync"
Write-Host 'Setting ECPVirtualDirectory to: '"https://$exchhost/ECP"
Get-ECPVirtualDirectory -Server $server | Set-ECPVirtualDirectory -ExternalURL "https://$exchhost/ECP" -InternalURL "https://$exchhost/ECP" -WarningAction silentlycontinue
Write-Host 'Configuring OutlookAnywhere...'
Get-OutlookAnywhere -Server $server | Set-OutlookAnywhere -ExternalHostname $exchhost -InternalHostname $exchhost -ExternalClientAuthenticationMethod basic -ExternalClientsRequireSsl $true -InternalClientAuthenticationMethod ntlm -InternalClientsRequireSsl $true -IISAuthenticationMethods basic,ntlm -SSLOffloading $false
Write-Host 'Configuring ClientAccessServer...'
Get-ClientAccessServer $server | Set-ClientAccessServer -AutoDiscoverServiceInternalUri "https://$exchhost/Autodiscover/Autodiscover.xml"
}
catch {
Write-Host 'An error occurred' -ForegroundColor Red
}
}
exchange online doesnt support failover from what i have read.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
Exchange doesn't have to be placed in different AD sites to implement DAG. If fact, though it is supported, it is difficult to get it to failover properly in a cross-site deployment--and in most cases is never automatic. Additionally, Exchange is an expensive proposition if deployed in Azure with the cost of the servers alone running 24/7 and the cost of configuring Exchange properly if you want it to be supported by Microsoft. In order for Exchange to be supported in Azure the databases and log files must be deployed on premium storage--which is not cheap.
This article outlines what platforms Exchange is and is not supported on and why ... https://oddytee.wordpress.com/2016/04/05/is-exchange-server-supported-in-amazon-web-services/
For the cost (and headache) of implementing DAG in a cross-site environment, I would recommend Exchange Online (Office 365) if that is in your budget. For all of the features O365 has compared to what an IT staff could implement on-premises, this would be my recommendation.
No, in fact this is known as the unbound namespace model and is configured in the majority of all implementation cases.
In most cases, the failover or switchover process with a multi-site deployment is always a manual one. The only case where it might be automatic is if you have 3 sites where Exchange servers are at 2 of them and the witness server is at the 3rd site.
Here is the TechNet article for Switchovers and Failovers. Though for 2013 the same rules apply. ... https://technet.microsoft.com/en-us/library/dd298067(v=exchg.150).aspx