0 votes

Here's a strange one for you all. Some of our users are getting created with Activesync enabled, and some are getting created with it disabled. Both creations are done using the exact same process within Adaxes.

Users that DO get Activesync enabled are showing this error in the Operation Execution Log for the "Create Exchange Mailbox" operation:

The cmdlet extension agent with the index 5 has thrown an exception in OnComplete(). 
The exception is: Microsoft.Exchange.Provisioning.ProvisioningException: ScriptingAgent: Exception thrown while invoking scriptlet for OnComplete API: Cannot convert 'System.Object[]' to the type 'Microsoft.Exchange.Configuration.Tasks.MailboxIdParameter' required by parameter 'Identity'. 
Specified method is not supported.. 
---> System.Management.Automation.ParameterBindingException: Cannot convert 'System.Object[]' to the type 'Microsoft.Exchange.Configuration.Tasks.MailboxIdParameter' required by parameter 'Identity'. Specified method is not supported. 
---> System.NotSupportedException: Specified method is not supported.    at System.Management.Automation.ParameterBinderBase.CoerceTypeAsNeeded(CommandParameterInternal argument, String parameterName, Type toType, ParameterCollectionTypeInformation collectionTypeInfo, Object currentValue)    

--- End of inner exception stack trace ---    

at System.Management.Automation.CmdletParameterBinderController.VerifyArgumentsProcessed(ParameterBindingException originalBindingException)    at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParametersNoValidation(Collection`1 arguments)    at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParameters(Collection`1 arguments)    at System.Management.Automation.CommandProcessor.BindCommandLineParameters(CommandParameterInternal[] parameters)    at System.Management.Automation.CommandProcessor.Prepare(CommandParameterInternal[] parameters)    at System.Management.Automation.CommandProcessorBase.DoPrepare(CommandParameterInternal[] parameters)    at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream)    at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean enumerate)    

--- End of inner exception stack trace ---    

at Microsoft.Exchange.ProvisioningAgent.ScriptingAgentHandler.OnComplete(Boolean succeeded, Exception e)    at Microsoft.Exchange.Provisioning.ProvisioningLayer.OnComplete(Task task, Boolean succeeded, Exception exception)

Users that DO NOT get ActiveSync Enabled, show no error at all. I know, its strange that users that work properly get an error.

I think this has to do with a Commandlet Extension Agent that our Exchange Admins have in place, but without fully understanding what commands adaxes is actually using to create a mailbox, I can't build a case to send to our Exchange Admins.

So, how do I find out the exact command(s) that Adaxes is issuing to the exchange servers? We're using the 'out of the box' action "Create an Exchange mailbox" in our business rules.

Any help to point me in the right direction would be greatly appreciated. Thanks in advance!

by (2.2k points)
0

Hello,

For this purpose, you can enable tracing of commands sent by Adaxes to your Exchange Server(s). To do this:

  1. Open the Softerra.Adaxes.Service.exe.Config file with a text editor. The file is located in the folder where your Adaxes service is installed, which is C:\Program Files\Softerra\Adaxes 3\Service by default.

  2. Find the following lines in the file:

     <powerShell ...>
         ...
         <trace enabled="false" outputFilePath="exchange.powershell.trace.txt" />
     </powerShell>
    
  3. Set the enabled parameter of the trace XML element to true.

         <trace enabled="true" outputFilePath="exchange.powershell.trace.txt" />
    
  4. When tracing is enabled, Adaxes outputs all commands sent to Exchange Servers to a text file located in the folder for Adaxes service. The file name is specified by the outputFilePath parameter. Modify it, if necessary.

  5. Save the file.

  6. Restart Adaxes service.

    Caution:

    The trace file can grow very fast, which decreases the overall Adaxes performance. For this purpose, it is recommended to enable tracing only when needed. To disable tracing when it becomes unnecessary, set the enabled parameter of the trace XML element back to false.

0

Thanks for the info. We've sent our findings to the Exchange team. I'll post again when I have more info.

Please log in or register to answer this question.

Related questions

0 votes
1 answer

This is the query I am using (basically if "Photo" is empty): (&amp;(sAMAccountType=805306368)(!(photo=*))) which returns everyone in AD, not just users without photos. ... sAMAccountType=805306368)(!(manager=*))) What am I doing wrong? Can my query be fixed?

asked Jun 11, 2012 by MarkManley (680 points)
0 votes
0 answers

On the Adaxes Selfservice portal we are having issues only some users can get into the portal. We have users with a secondary account for admin rights that only have access to ... year. Now it seems not be working. Any idea on why this is happening? Thanks

asked Jun 3, 2016 by 7efd721c8b (2.8k points)
0 votes
0 answers

I am using adm-CustomAttributeText2 to capture external email address. And then using the same to create mail enabled exchange account. But I would like ... " -EmailAddressPolicyEnabled $true # Close connection to Exchange Server Remove-PSSession $session

asked Nov 2, 2015 by Brajesh (2.5k points)
0 votes
0 answers

Hello, We had this happen today, and it is the first time we have noticed this. We created a user using the HelpDesk web interface (our usual procedure), and the user ... seen before, and what we could do to try and troubleshoot if this happens again. Thanks.

asked Nov 8, 2018 by Jasonmh (2.8k points)
0 votes
0 answers

Hello As I have mentioned before - when creating a new user, I need to fetch the formal name of the user from an external system. In the external system, the user's formal name ... as an logmessage, but ..... this will appear as a bad solution :oops: - Thanks

asked Jun 8, 2016 by Boxx.dk (11.9k points)
2,352 questions
2,107 answers
5,746 comments
131,526 users