Hi,
I have installed Exchange 2013 upgraded from 2007 mail flow is working ok users can access OWA and most can access via exchange however autodiscover does not work just keeps giving 401 error message which is target principal name is incorrect i have SAN SSL for autodiscover.company.co.uk and mail.company.co.uk and the certificate is installed and working. i can browse to autodiscover.company.co.uk/autodiscover/autodiscover.xml and get the expected 600 error code and when checking the certificate in the browser it is giving the correct one, however when testing outlook 2013/16 autodiscover i get the 401 error and the below when testing in the exchange management shel. also the outlook autodiscovery check on the microsoft remote connectivity tester works fine manages to get the xml response.
System.Net.WebException: The remote server returned an error: (401) Unauthorized. --->
System.ComponentModel.Win32Exception: The target principal name is incorrect
please help