Exchange Web Services - Test-OutlookWebServices 404 Errors

I've tried reaching out to the microsoft forums and have had no luck, so I am trying here. I have 2 exchange 2010 servers that i am unable to get a working EWS setup. If you want to read the article, you can at

Clean install of RTM 2010 works when testing EWS using:
Test-WebServicesConnectivity -UseAutodiscoverForClientAccessServer

After applying SP1 RU6 or SP2, it does not work. I get:
Error : [System.Net.WebException]: The request failed with HTTP status 403: Forbidden.

After cranking up diagnostic logging in EMC, I see this in the IIS logs:
AuthError=User not allowed to access EWS;,ReportException_Message=Access is denied. Check credentials and try again.;ReportException_StackTrace=   at Microsoft.Exchange.Services.Wcf.MessageInspectorManager.AfterReceiveRequest(Message& request; IClientChannel channel; InstanceContext instanceContext)    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.AfterReceiveRequestCore(MessageRpc& rpc)    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)    at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet);

Any help is appreciated.
Who is Participating?
Run this command:Set-OrganizationConfig -EWSApplicationAccessPolicy:$null -EWSAllowMacOutlook:$True -EWSAllowEntourage:$True

Run the command: Get-WebServicesVirtualDirectory | FL and paste the output here
Jessie Gill, CISSPTechnical ArchitectCommented:
Just to try something set the iis virtual directory for Wes to anonymous.  Then see if it works if it does then we can start to figure out it is a permission issue on the virtual directory
fluxlabsAuthor Commented:
With Anonymous I get - 401 Unauthorized
fluxlabsAuthor Commented:
I think that was it. I've run everything except the -EWSApplicationAccessPolicy:$null .. I read that if -EWSAllowList was $null that everything should be good. Thank you! I have honestly spent 3 weeks on this issue. Even the microsoft boards were of no use.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.