We help IT Professionals succeed at work.

When contacting https://mail.domain.com/autodiscover/autodiscover.xml received the 401: Unautherized error

Medium Priority
Last Modified: 2012-05-06
I replaced the exchange 2007 self signed certificate with a commercial one and all services work fine.[ owa, Outlook Anywhere, active sync etc]. Modified all EWS services to use the new certificate as per the TechNet article http://support.microsoft.com/kb/940726 to fix the certificate warning error and Outlook 2007 works OK too.
Issue is when I use test-outlookwebservice cmdlet it gives the error  bellow.
Id      : 1013
Type    : Error
Message : When contacting https://access.siemens.com.au/autodiscover/autodiscover.xml received the  error The remote server returned an error: (401) Unauthorized.
If I change URIs back to server name it can contact the .xml file but get the certificate error. What is causing this?
Thanks , jayaj1
Watch Question

See the following:

It will always fail, unless you disable loopback checking (which should only be done for testing and re-enabled afterward)

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


Thanks for your response. When I disabled loop back checking I was able to run the test-outlookwebservices command and enabled it afterwards.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.