My results of your script: Exception calling "UploadString" with "2" argument(s): "The remote server returned an error: (401) Unauthorized."
Comparing my CAS server permissions with this list: http://blogs.technet.com/b/jribeiro/archive/2010/09/27/default-settings-for-exchange-related-virtual-directories-in-exchange-server-2010.aspx For /ECP and /OWA directories I also have Windows Authentication enabled, and for /RPC I have only basic an NOT Windows. Is there any reason I shouldn't I change these to match that list? Dave > New blog post: Testing #MSExchange Autodiscover with #PowerShell > http://theessentialexchange.com/blogs/michael/archive/2014/10/01/testing-exchange-autodiscover-with-powershell.aspx > > >