What is Autodiscovery?
Exchange Autodiscover is a web service that helps Microsoft Exchange administrators configure user profile settings for clients running Outlook 2007 or later, and mobile phones running Windows Mobile 6.1 or later.
In order for autodiscovery to work properly, DNS must be configured in a right way:
- DNS must contain CNAME record autodiscover.yourdomain.com
- Autodiscover record must point to A record of yourdomain.com
Autodiscover can be tested via Microsoft Exchange Connectivity Analyzer on this link
To check which URL is set for autodiscovery, run the following command in PowerShell on Exchange Server:
Get-ClientAccessServer | fl AutoDiscoverServiceInternalUri
Result should be:
AutoDiscoverServiceInternalUri : https://yourdomain.com/Autodiscover/Autodiscover.xml
Where:
yourdomain.com
is url to your external domain
If the result is something else, you can set it up to point to proper URL:
Set-ClientAccessServer -AutoDiscoverServiceInternalUri https://yourdomain.com/Autodiscover/Autodiscover.xml
Where:
yourdomain.com
is url to your external domain
If it is set up in a proper way Cloud Migration Platform will show all mailboxes on which user whose credentials were used during logon has impersonation rights set up.
To start using Cloud Migration Platform with Autodiscovery, PowerShell remoting must be enabled on CAS server (Exchange 2010 and 2013) or MBX server (Exchange 2016) using the following steps:
From PowerShell run the command:
Enable-PSRemoting
In IIS PowerShell virtual directory for your website (it may be Default Web Site) enable basic authentication
Make sure that user which is used for autodiscovery has remote PowerShell enabled. It needs to return the value True
Get-User [user_name] | Select RemotePowerShellEnabled
Where:
- [user_name] is the name of the user which will be used for migration on Cloud Migration Platform
If the returned value is false, remote PowerShell needs to be enabled
Set-User [user_name] -RemotePowerShellEnabled $True
Where:
- [user_name] is the name of the user which will be used for migration on Cloud Migration Platform
To test the PowerShell connectivity, from any computer open PowerShell and run the following commands:
Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential –SkipCACheck –SkipCNCheck –SkipRevocationCheck
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://<url_to_exchange_server>/powershell -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
CMP Internal (Migrated deleted Agent)
Comments