Exchange 2013 - Unable to execute test-ActiveSyncConnectivity cmdlet

John Szeglin
John Szeglin used Ask the Experts™
on
Hello,

I am troubleshooting some Exchange Server 2013 problems related to ActiveSync, and I need to be able to use the test-ActiveSyncConnectivity cmdlet.  I've followed the steps as outlined in the Microsoft Doc here.  However, I receive an error message during the initial New-TestCasConnectivityUser.ps1 script execution (looks like setting attributes to the test mailbox), and I'm unable to execute the test-ActiveSyncConnectivity cmdlet after the script completes.

[PS] C:\Windows\system32>cd \temp
[PS] C:\temp>& $env:ExchangeInstallPath\Scripts\New-TestCasConnectivityUser.ps1
Please enter a temporary secure password for creating test users. For security purposes, the password will be changed r
egularly and automatically by the system.
Enter password: ***********
Update test user permissions on: EXCHANGE13.[REDACTED].local
Click CTRL+Break to quit or click Enter to continue.:
UserPrincipalName: extest_ba8013b96ceb4@[REDACTED].local
A parameter cannot be found that matches parameter name 'MaxSendSize'.
    + CategoryInfo          : InvalidArgument: (:) [Set-Mailbox], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Set-Mailbox
    + PSComputerName        : exchange13.[REDACTED].local

A parameter cannot be found that matches parameter name 'RemotePowerShellEnabled'.
    + CategoryInfo          : InvalidArgument: (:) [Set-User], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Set-User
    + PSComputerName        : exchange13.[REDACTED].local

test-ActiveSyncConnectivity : The term 'test-ActiveSyncConnectivity' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At D:\Program Files\Microsoft\Exchange Server\V15\Scripts\New-TestCasConnectivityUser.ps1:83 char:5
+     test-ActiveSyncConnectivity -ResetTestAccountCredentials -MailboxServer:($ma ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (test-ActiveSyncConnectivity:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


You can enable the test user for Unified Messaging by running this command with the following optional parameters : [-UM
DialPlan <dialplanname> -UMExtension <numDigitsInDialplan>] . Either None or Both must be present.

[PS] C:\temp>

Open in new window


I am a domain admin, and RemotePowerShellEnabled is set to True for my user.  Exchange 2013 is updated to CU8.  Any help on how to troubleshoot and resolve is appreciated.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hayes JupeIT Director

Commented:
hey,
so you can work around this by using

Test-ActiveSyncConnectivity  -UseAutodiscoverForClientAccessServer $true -MailboxServer (Get-Credential user@domain.com)

I've not seen that error when creating a test user before with the script - and find it quite odd.
Have you tried deleting the existing user/mailbox - and then re-running the script? it looks like there's something busted with the test user which may already exist (but be broken?) - I'm not really sure on that part of it.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial