Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am writing regarding the Exchange powershell commands.

When I want to use following cmdlets, I have to insert parameter -mailboxcredential

  • Test-OwaConnectivity
  • Test-OutlookWebServices
  • Test-ImapConnectivity
  • Test-PopConnectivity

In the Microsoft official site is written:

The MailboxCredential parameter specifies the mailbox credential for a single URL test.

I am not sure why this parameter is needed. I inserted incorrect credentials, however the command was finished successfully. Could you tell me reason why this parameter is needed?

Example (Wrong/incorrect credential)

[PS] C:\>Test-WebServicesConnectivity -ClientAccessServer EXhub1 -MailboxCredential (Get-Credential blablabla)

CasServer  LocalSite     Scenario        Result  Latency(MS) Error
---------  ---------     --------        ------  ----------- -----
EXhub1     Default-Fi... GetFolder       Failure             [System.Net.WebExcept...

Without parameter:

[PS] C:\>Test-WebServicesConnectivity -ClientAccessServer EXhub1
WARNING: Test user 'extest_91ef41d34eef4' isn't accessible, so this cmdlet won't be able to test Client Access server
connectivity.
Could not find or sign in with user ********\extest_91ef41d34eef4. If this task is being run without credentials,
sign in as a Domain Administrator, and then run Scripts\new-TestCasConnectivityUser.ps1 to verify that the user exists
on Mailbox server EXHUB1.******
+ CategoryInfo          : ObjectNotFound: (:) [Test-WebServicesConnectivity], CasHealthCouldN...edInfoException
+ FullyQualifiedErrorId : FB9A14B6,Microsoft.Exchange.Monitoring.TestWebServicesConnectivity
WARNING: No Client Access servers were tested.
share|improve this question

1 Answer 1

up vote 1 down vote accepted

I don't know why you think your first command was succesful. It clearly states that the result was a failure:

enter image description here

If you run:

Test-WebServicesConnectivity -ClientAccessServer EXhub1 -MailboxCredential (Get-Credential blablabla)|Format-List *

You'll get more information about exactly what's going on.

With the second request, as explained by Mathias in a comment below, it's trying to create an account called extest_91ef41d34eef4 to test the mailbox, which you cannot do unless you have the rights to create user accounts.

share|improve this answer
    
He's not logged in as extest_91ef41d34eef4, that's a system-created user mailbox for the Test-* cmdlets. In order for it to work he just needs to log in as a Domain Admin –  Mathias R. Jessen Mar 21 '12 at 0:49
1  
Right, and it needs domain admin rights to create that user. I was mistaking it with that testexchangeconnectivity site. –  Mark Henderson Mar 21 '12 at 1:02
    
Yes, you are right...Thank you very much. When I inserted correct credential, I can see good result with all information. Thanks –  cotablise Mar 21 '12 at 8:46
    
One more thing... (-mailboxcredential) this parameter is used only for authentication, or is there some side effect ? Thanks in advance –  cotablise Mar 21 '12 at 9:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.