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 (215k 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
0 answers

So I need to export a list of all user's Line URI's to a CSV file. Running Adaxes 2021 Version 3.14.18804.0 (64 bit) and Teams Powershell 4.1.0 ... a Microsoft 365 account } finally { # Close the connection and release resources Disconnect-MicrosoftTeams }

asked Aug 4 by TheLexicon (180 points)
0 votes
1 answer

When running a PowerShell script as an action in a custom command, you can set the script to run as a different account and then use the RunAs property in the ... Is there another way to get the Adaxes service account's credentials from within the script?

asked Mar 31 by KelseaIT (320 points)
0 votes
1 answer

Are PowerShell commands supposed to show up in the programming interface after adding the module to the Adaxes server? I've installed modules and they don't show.

asked Aug 18, 2020 by ComputerHabit (790 points)
0 votes
1 answer

Hi Support, What Version of PowerShell does Adaxes 2018.1 support? Thx

asked Jun 22, 2018 by Napoleon (700 points)
2,779 questions
2,512 answers
6,574 comments
26,276 users