0 votes

Sometimes, not always, when we run a script to change usertype (like from "Disabled" to "Active"), Adaxes crashes completly. We have a set of groups in a $groups variable, and this tries to add the user to those groups:

foreach ($group in $groups) {
  try {    
    Add-AdmGroupMember -Identity $group -Members "%distinguishedName%" -AdaxesService localhost -Server $domainName -Confirm:$false -ErrorAction SilentlyContinue
  }
  catch {
    $Context.LogMessage("$Error", "Error") 
  }
}

Sometimes, this functions goes fine... but suddenly it sends tons of "The specified account name is already a member of the group. (Server: domain.local)" to the log, and Adaxes crashes..

Adaxes version 3.6.10109.0

by (960 points)
0

Hello,

Can you send us Adaxes Event Log for the computer where Adaxes service is installed? For information on how to access it, see the following help article: http://www.adaxes.com/help/?ServiceAdmi ... ntLog.html.

Also, it would be wise to avoid such a situation when you are trying to add a user that is already a member of a group. If you could send us the full script to support[at]adaxes.com, we could come up with some suggestions

Please log in or register to answer this question.

Related questions

0 votes
0 answers

In the Adaxes Administration Console, when I try to add a specific user to either "Administrators" or any Security Role, the Select dialogue box can't find it. I ... console can find without issue and all the permissions on the user object are the same.

asked 4 days ago by jmatthews (250 points)
0 votes
1 answer

After upgrading to version 2025.1 we need to rewrite al lot of powershell scripts. We have a problem with using the ConfluencePS powershell module that is used to write info ... what is going wrong here as the PS Module does work on other PS V7 environments?

asked 6 days ago by abwi (40 points)
0 votes
1 answer

I have a PowerShell script that ran fine on my old computer (Windows 10, VSCode, Powershell 7). After changing hardware, moving to Windows 11, and re-installing, the script ... b77a5c561934e089'." .NET 4.8 is installed. Any ideas on how to resolve this error?

asked May 29 by Kirkvanslyke (70 points)
0 votes
1 answer

Is an onprem active directly still needed or can it run with Azuread/office365 only? the company i work for only runs cloud .

asked May 26 by fxg2 (20 points)
0 votes
1 answer

Since adaxes does not support powershell 5.1 and we make use of snapins for Exchange Management Tools we are considering rolling back to 2023.2. In the changelog there is no ... any issue to roll back until we figure out a way to manage the hybrid environment?

asked May 23 by jdoucet (20 points)
3,704 questions
3,387 answers
8,557 comments
549,779 users