This is just a 100% copy from this excellent blog as a note for myrself. : http://kirb.it/enable-office-365-auto-discover-for-outlook-in-sbs-2011-exchange-environments/
- Open an Exchange Management Shell as an administrator. (Elevated PowerShell)
- Use the following command to discover the Identity name of your Autodiscover Virtual Directory. Either note or copy the values in the Identity field.
Get-AutodiscoverVirtualDirectory | fl Name, Server, InternalUrl, Identity
- Use the following command to remove the AutoDiscover Virtual Directory. Be sure to replace the text inside the quotes with the value in the Identity field above.
Remove-AutodiscoverVirtualDirectory –Identity “Insert identity value here”
- You will have to confirm the removal by hitting Y for yes when prompted. You can double check to see if this worked properly by rerunning the command in step 2. You should get a blank result if successful.
That should be it. Your Outlook clients should connect successfully to the Office 365 service.