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)
by (216k 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

After following the process outlined at https://www.adaxes.com/help/ConfigureMailSettings/#exchange-app-auth, I enter in the smtp server, port 587, the server requires ... nothing. Checked the adaxes logging, nothing. Any help is apprecaited. Thank you!

asked Jul 10 by emeisner (160 points)
0 votes
0 answers

Hi, We are currently considering spinning up a test environment for our Active Directory infrastructure, which includes Adaxes. Can we use our existing Adaxes ... the licensing requirements for test/development environments? Thank you for your assistance.

asked 2 days ago by wintec01 (2.3k points)
0 votes
1 answer

Using this code: $UserAD = $Context.BindToObjectByDN($DNAD) $UserAD.Put("thumbnailPhoto", $photoBytes) $UserAD.SetInfo() I doesn't create a log in adaxes of the photo being updated. ... s something simple but I can't remember or find it in my support emails.

asked Aug 13 by mightycabal (1.2k points)
0 votes
1 answer

we'd like to build a New Joiner user account creation procedure and were wondering if Adaxes is able to read a SharePoint list and build a flow that can create user ... in MS365 Exchange online, if the respective new joiner is approved in the SharePoint list.

asked Aug 4 by Lucian (20 points)
0 votes
1 answer

Our Microsoft 365 licensing changed recently. All of our end users has a particular license that is no longer valid (ENTERPRISEPREMIUM = Office 365 E5). I need to give everyone that ... the same time, remove the old license. How can this be set up in Adaxes?

asked Jul 21 by RayBilyk (260 points)
0 votes
1 answer