what means parameter -mailboxcredenctial

Posted by cotablise on Server Fault See other posts from Server Fault or by cotablise
Published on 2012-03-20T22:59:44Z Indexed on 2012/03/20 23:31 UTC
Read the original article Hit count: 205

H3llo,

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.

Thank you in advance

© Server Fault or respective owner

Related posts about exchange

Related posts about exchange-2010