Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, October 9, 2018 2:29 PM
i)The test user is created in erpex2016-ex1 server
ii)When I run Test-WebServicesConnectivity in erpex2016-ex1(exchange management shell) server it is running fine, but when I try to run on erpex2016-ex2 server it throws the below error.
ERROR:
[PS] C:\Program Files\Microsoft\Exchange Server\V15\Scripts>Test-WebServicesConnectivity
Creating a new session for implicit remoting of "Test-WebServicesConnectivity" command...
Unable to find the client accesss monitoring user. Please run C:\Program Files\Microsoft\Exchange
Server\V15\Scripts\New-TestCasConnectivityUser.ps1. Exception:
Microsoft.Exchange.Monitoring.CasHealthStorageErrorException: An error occurred while trying to access mailbox
erpex2016-ex1.erpex2016.com, on behalf of user erpex2016.com\extest_a0be146391d14
Additional information:
[Microsoft.Exchange.Data.Storage.WrongServerException]: The user and the mailbox are in different Active Directory
sites..
at Microsoft.Exchange.Monitoring.CommonTestTasks.GetDefaultTestAccount(ClientAccessContext context)
at Microsoft.Exchange.Monitoring.TestWebServicesTaskBase.GetMonitoringAccount()
+ CategoryInfo : InvalidData: (:) [Test-WebServicesConnectivity], TestWebServicesTaskException
+ FullyQualifiedErrorId : [Server=ERPEX2016-EX2,RequestId=c461265f-0e40-44e9-b03e-103e34381adf,TimeStamp=10/17/201
8 9:05:06 PM] [FailureCategory=Cmdlet-TestWebServicesTaskException] B3D37A9B,Microsoft.Exchange.Monitoring.TestWeb
ServicesConnectivity
+ PSComputerName : erpex2016-ex2.erpex2016.com
Thanks..
All replies (8)
Wednesday, October 10, 2018 3:24 AM | 1 vote
Hi bharanii,
Did these servers in the same site? Were there any active databases mount on erpex2016-ex2 server?
Here is an similar thread for your reference, it explains this issue in details:
Test-OutlookWebServices - The user and the mailbox are in different Active Directory sites
Moreover, if you want to run "Test-WebserviceConnectivity" successful on ex2 server, you can run the following command as a workaround:
Test-WebServicesConnectivity -Identity "An existed User" -MailboxCredential (Get-Credential)
Best Regards,
Niko Cheng
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].
Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.
Wednesday, October 10, 2018 7:10 AM
Hi Niko Cheng,
Thank you for reply.
1)Yes , servers are on the same site
[PS] C:\Program Files\Microsoft\Exchange Server\V15\Scripts>Get-ExchangeServer |select site
Creating a new session for implicit remoting of "Get-ExchangeServer" command...
Site
erpex2016.com/Configuration/Sites/Default-First-Site-Name
erpex2016.com/Configuration/Sites/Default-First-Site-Name
2)Yes, there is an active database mount on erpex2016-ex2 server
[PS] C:\Program Files\Microsoft\Exchange Server\V15\Scripts>Get-MailboxDatabase
Creating a new session for implicit remoting of "Get-MailboxDatabase" command..
Name Server Recovery ReplicationType
Mailbox Database 1603217781 ERPEX2016-EX1 False None
Mailbox Database 1017604560 ERPEX2016-EX2 False None
database1 ERPEX2016-EX1 False None
AuditEvent1 ERPEX2016-EX1 False None
AuditEvent2 ERPEX2016-EX1 False None
TestDatabase ERPEX2016-EX1 False None
Thanks,
Bharanii
Friday, October 12, 2018 9:56 AM
Hi bharanii,
Have you tried to run the following command on ex2 server? How about the result?
Test-WebServicesConnectivity -Identity "An existed User" -MailboxCredential (Get-Credential)
Best Regards,
Niko Cheng
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].
Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.
Monday, October 15, 2018 9:35 AM
Hi Niko Cheng,
The cmdlet you gave runs successfully .
[PS] C:\Program Files\Microsoft\Exchange Server\V15\Scripts>Test-WebServicesConnectivity -Identity 'administrator' -MailboxCredential(Get-Credential)
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
Creating a new session for implicit remoting of "Test-WebServicesConnectivity" command...
Source ServiceEndpoint Scenario Result Latency
(MS)
erpex2016-ex2.erpex2016.com erpex2016-ex1 Autodiscover: SOAP Provider Failure 5393
erpex2016-ex2.erpex2016.com EWS: GetFolder Skipped 0
! But i am just curious to know why the first way not worked.
Thanks,
Bharanii
Tuesday, October 16, 2018 10:01 AM
Hi bharanii,
Per my knowledge, this error most likely happened after an upgrade to exchange and you've updated the active directory and exchange schema. In order to solve the issue, you can try to delete the test user and recreate it on ex2 server and check again.
Best Regards,
Niko Cheng
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].
Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.
Tuesday, October 16, 2018 11:55 AM
Hi Niko Cheng,
Thanks much for your reply,
I have deleted the test user in ex1 server and recreated on ex2 server, now in ex2 its working fine and ex1 throwing the error.
EX1:
[PS] C:\Windows\system32>Test-WebServicesConnectivity
Creating a new session for implicit remoting of "Test-WebServicesConnectivity" command...
Unable to find the client accesss monitoring user. Please run C:\Program Files\Microsoft\Exchange
Server\V15\Scripts\New-TestCasConnectivityUser.ps1. Exception:
Microsoft.Exchange.Monitoring.CasHealthStorageErrorException: An error occurred while trying to access mailbox
erpex2016-ex2.erpex2016.com, on behalf of user erpex2016.com\extest_a0be146391d14
Additional information:
[Microsoft.Exchange.Data.Storage.WrongServerException]: The user and the mailbox are in different Active Directory
sites..
at Microsoft.Exchange.Monitoring.CommonTestTasks.GetDefaultTestAccount(ClientAccessContext context)
at Microsoft.Exchange.Monitoring.TestWebServicesTaskBase.GetMonitoringAccount()
+ CategoryInfo : InvalidData: (:) [Test-WebServicesConnectivity], TestWebServicesTaskException
+ FullyQualifiedErrorId : [Server=ERPEX2016-EX1,RequestId=536d3691-baee-4683-bf15-139fda16a3d4,TimeStamp=10/24/201
8 6:49:54 PM] [FailureCategory=Cmdlet-TestWebServicesTaskException] 36484AB0,Microsoft.Exchange.Monitoring.TestWeb
ServicesConnectivity
+ PSComputerName : erpex2016-ex1.erpex2016.com
EX2:
[PS] C:\Program Files\Microsoft\Exchange Server\V15\Scripts>Test-WebServicesConnectivity
Source ServiceEndpoint Scenario Result Latency
(MS)
erpex2016-ex2.erpex2016.com erpex2016-ex1 Autodiscover: SOAP Provider Failure 4829
erpex2016-ex2.erpex2016.com EWS: GetFolder Skipped 0
Thanks,
Bharanii
Thursday, October 18, 2018 10:02 AM
Hi Bharanii,
If wait for several days after creating a test user in one server, then re-run the command on another server, does it help?
Best Regards,
Niko Cheng
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].
Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.
Wednesday, October 24, 2018 10:08 AM
Hi Niko Cheng,
Thanks for the reply,
Still I cannot execute Test-WebServicesConnectivity successfully in ex1 server,
[PS] C:\Windows\system32>Test-WebServicesConnectivity
Creating a new session for implicit remoting of "Test-WebServicesConnectivity" command...
Unable to find the client accesss monitoring user. Please run C:\Program Files\Microsoft\Exchange
Server\V15\Scripts\New-TestCasConnectivityUser.ps1. Exception:
Microsoft.Exchange.Monitoring.CasHealthStorageErrorException: An error occurred while trying to access mailbox
erpex2016-ex2.erpex2016.com, on behalf of user erpex2016.com\extest_a0be146391d14
Additional information:
[Microsoft.Exchange.Data.Storage.WrongServerException]: The user and the mailbox are in different Active Directory
sites..
at Microsoft.Exchange.Monitoring.CommonTestTasks.GetDefaultTestAccount(ClientAccessContext context)
at Microsoft.Exchange.Monitoring.TestWebServicesTaskBase.GetMonitoringAccount()
+ CategoryInfo : InvalidData: (:) [Test-WebServicesConnectivity], TestWebServicesTaskException
+ FullyQualifiedErrorId : [Server=ERPEX2016-EX1,RequestId=a24c50d1-6a46-4b53-805c-e78a1f32c4f1,TimeStamp=11/1/2018
5:03:59 PM] [FailureCategory=Cmdlet-TestWebServicesTaskException] 362B6FD2,Microsoft.Exchange.Monitoring.TestWebS
ervicesConnectivity
+ PSComputerName : erpex2016-ex1.erpex2016.com
But ecp connectivity is executing fine
[PS] C:\Windows\system32>Test-EcpConnectivity
CasServer LocalSite Scenario Result Latency(MS) Error
erpex20... Default-Fi... Reset Creden... Failure [Microsoft.Exchange.M...
WARNING: No Client Access servers were tested.
Thanks,
Bharanii