Change Web Services Location – Availability Service and Out of Office (OOF)
Get-webservicesvirtualdirectory | fl identity,internalurl,externalurl
Set-WebServicesVirtualDirectory -Identity “MachineNameEWS (Default Web Site)” -ExternalURL https:// autodiscover.company.com/EWS/Exchange.asmx -BasicAuthentication:$true
Change AutoDiscover Location
get-clientaccessserver | flget-clientaccessserver | set-ClientAccessServer –AutoDiscoverServiceInternalUri https://autodiscover.company.com/Autodiscover/Autodiscover.xml
Change AutoDiscover Internal and External URL’s
get-autodiscovervirtualdirectory | flGet-AutodiscoverVirtualDirectory | Set-AutodiscoverVirtualDirectory -InternalUrl “http://autodiscover.company.com“Get-AutodiscoverVirtualDirectory | Set-AutodiscoverVirtualDirectory -ExternalUrl “http://autodiscover.company.com”