Tech for Techs

Servers => Microsoft Exchange => 2013 => Topic started by: Bobby M. - AdvenTech on May 10, 2016, 02:07:51 PM

Title: View and changing Autodiscover settings
Post by: Bobby M. - AdvenTech on May 10, 2016, 02:07:51 PM
Problem:
Wrong autodiscover settings when adding new user?
How to change autodiscover settings.

Solution:
In Exchange Management Shell

To View Current Settings
Get-ActiveSyncVirtualDirectory | fl internalurl,externalurl
Get-AutoDiscoverVirtualDirectory | fl internalurl,externalurl
Get-ECPVirtualDirectory | fl internalurl,externalurl
Get-OabVirtualDirectory | fl internalurl,externalurl
Get-WebServicesVirtualDirectory | fl internalurl,externalurl


To Set or Change URL settings
Get-ActiveSyncVirtualDirectory -server EXCHANGE | Set-ActiveSyncVirtualDirectory -ExternalUrl 'https://mail.DOMAIN.com/Microsoft-Server-ActiveSync' -InternalUrl 'https://mail.DOMAIN.com/Microsoft-Server-ActiveSync'

Get-AutodiscoverVirtualDirectory -server EXCHANGE | Set-AutodiscoverVirtualDirectory -ExternalUrl 'https://mail.DOMAIN.com/Autodiscover/Autodiscover.xml' -InternalUrl 'https://mail.DOMAIN.com/Autodiscover/Autodiscover.xml'

Get-ECPVirtualDirectory -server EXCHANGE | Set-ECPVirtualDirectory -ExternalUrl 'https://mail.DOMAIN.com/ECP' -InternalUrl 'https://mail.DOMAIN.com/ECP'

Get-OabVirtualDirectory -server EXCHANGE | Set-OabVirtualDirectory -ExternalUrl 'https://mail.DOMAIN.com/OAB' -InternalUrl 'https://mail.DOMAIN.com/OAB'

Get-WebServicesVirtualDirectory -server EXCHANGE | Set-WebServicesVirtualDirectory -ExternalUrl 'https://mail.DOMAIN.com/EWS/Exchange.asmx' -InternalUrl 'https://mail.DOMAIN.com/EWS/Exchange.asmx'