0 votes

Hello,

I have few business rules for AD account rename to validate input data and make sure username selected is unique in AD, but sometimes it fails with very non-explaining error "The parameter is incorrect. (Server: <domain name>)".
Could you please suggest any ways I could identify which of the scripts fail and maybe why? Is there an option to view running output of them?
Here is the output I get on running rename function in Adaxes:

Business Rules: 2 rules encountered while processing your request
'BR26 before updating a user': Run PowerShell script 'Set old values to custom attributes' for the user
'BR14 set alias and mail after rename': Run PowerShell script 'trim if needed' for the user
'BR14 set alias and mail after rename': Run PowerShell script 'verify input' for the user
The username has been changed to newname.
The parameter is incorrect. (Server: <domain name>)

BR26 - is a "Before updating a User" rule
BR14 - is a "Before renaming a User" rule

by (760 points)

1 Answer

0 votes
by (216k points)
selected by
Best answer

Hello,

Could you please suggest any ways I could identify which of the scripts fail

Based on the Execution Log information in your post, this is the “verify input” script used in the BR14 Business Rule that fails. The logs are structured in such a way that the action that causes an error is located right above the error itself.

and maybe why?

The issue can be caused by the fact that the new username is already used for another user account in your domain. For troubleshooting purposes, could you post here or send us (support[at]addaxes.com) the “verify input” script?

Is there an option to view running output of them?

It is possible to add a message to the Execution Log of the operation that caused execution of the script. To do so, you need to use the LogMessage method in your script. For information on how to do so, have a look at the following SDK article: http://adaxes.com/sdk/?ExecuteScriptContextClass.html.

Related questions

0 votes
1 answer

Hello, We have a problem with the way Adaxes detects % as variables in all PowerShell scripts. We are configuring a HTML email template for all out going emails from the system ... this is a start of a variable. Is there anyway around this? Regards, ice-dog

asked Feb 22, 2019 by ice-dog (170 points)
0 votes
1 answer

I'd like to log specific details from my scripts but would like to integrate it with Adaxes if possible.

asked Jun 5 by ZoomGhost (280 points)
0 votes
1 answer

Hello Is it possible to reference a powershell script placed in a folder somewhere on the Adaxes server, instead of embedding them in each BR and CC ? I'm planning to install a powershell GUI product, for easy debugging. - Thanks

asked Feb 17, 2016 by Boxx.dk (2.6k points)
0 votes
1 answer

Hello, I am using a custom task to run PowerShell scripts that migrate users to Office 365. After the initial migration is complete, I'm running a second script ... .Actions.RunScriptAction.Execute(ICommand command) --- End of inner exception stack trace ---

asked Feb 19, 2015 by DFassett (710 points)
0 votes
1 answer

Hi, I have this Script to check if a condition is met # The condition is met if $Context.ConditionIsMet is set to $True. $Context.ConditionIsMet = $False $inputString = " ... or issue with this match function using in a "if script returns true" condition?

asked Oct 31 by wintec01 (1.5k points)
3,548 questions
3,238 answers
8,232 comments
547,810 users