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

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

I've been attempting to run the "Management History" report located in Reports -&gt; All Reports -&gt; Miscellaneous-&gt;Logging based on this script in the repository. ... to using the ADSI Adaxes functionality and I'm not sure where to begin troubleshooting.

asked Aug 15, 2023 by awooten (60 points)
0 votes
1 answer

For instance to execute a powershell script that enable MFA for all member in that group?

asked Jan 27, 2023 by samuel.anim-addo (20 points)
3,346 questions
3,047 answers
7,782 comments
544,983 users