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
1 answer

The new version of Adaxes says it uses Powershell 7 and Powershell 5.1 scripts may need to be re-written. I have so many scripts using a combination of ... several different web views for several different teams and uses. Will existing permissions change?

asked 6 days ago by mightycabal (1.1k points)
0 votes
1 answer

We followed the upgrade instructions here: Adaxes Installation Guide We upgraded from 2023.2 to 2025.1 in a Single Server Configuration. -Backed up our configuration using the backup ... 2 on it that we saved before having to revert back that I can provide.

asked Apr 22 by cmosley (20 points)
0 votes
1 answer

Unable to select the option "Hide from exchange addres list" from shared mailbox that is being managed via Adaxes Getting this error The operation on mailbox "6e481282- ... . This action should be performed on the object in your on-premises organization.

asked Apr 17 by sctheva (20 points)
0 votes
1 answer

I am trying to run a script that uses the Vmware.Hv.Helper module to connect to a VMWare horizons server and pull usage data. After updating to 2025, this script fails and ... instead of 7. How does adaxes know which version of powershell to use for a script?

asked Apr 17 by DA-symplr (120 points)
0 votes
1 answer

I wish to disable tls 1.0 and 1.1 whilst leaving tls 1.2 enabled.

asked Apr 2 by egb_riv (20 points)
3,682 questions
3,368 answers
8,518 comments
549,478 users