0 votes

Get-AdmPrincipalGroupMembership always throws an exception, even for users which absolutely exist (eg: piped directly from Get-AdmUser)

Example Get-AdmPrincipalGroupMembership -Identity 'Test.User' -AdaxesService localhost

Get-AdmPrincipalGroupMembership : The given key was not present in the dictionary.
...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-AdmPrincipalGroupMembership], KeyNotFoundException
    + FullyQualifiedErrorId : Softerra:Adaxes:PowerShellModule:Commands:GetAdmPrincipalGroupMembershipCommand:ProcessRecord,Softerra.Adaxes.PowerShellModule.Commands.GetAdmPrincipalGroupMembershipCommand
by (210 points)

1 Answer

0 votes
by (272k points)

Hello,

Unfortunately, this is a known issue in Adaxes 2023 when you use Get-AdmPrincipalGroupMembership with the -AdaxesService parameter. It will be fixed in the upcoming release. We apologize for the inconveniences.

As of now, the only solution is to use the cmdlet without the parameter.

0

Hello Matt,

A new version of Adaxes containing a fix for the issue is released. You can download it from here.

What’s New

Upgrade Instructions

Related questions

0 votes
1 answer

Hello, I'm trying to write a simple powershell script to check if a user is a member of one of two groups and output a true value if the user is a member of ... intended to be run as Adaxes scheduled tasks or can I use the default Powershell cmdlets instead?

asked Nov 4, 2015 by drew.tittle (810 points)
0 votes
1 answer

Hi im using following power shell script to create a security group in AD. Import-Module Adaxes New-AdmGroup -Name "L-Admin_%fullname%" -Path "OU=Local Admins,OU=99X Oslo,DC ... the available functions to do this. hoping for a quick response. Thanks alot. :)

asked Feb 22, 2018 by ashensha (50 points)
0 votes
0 answers

When we copy a user to create a new user within Adaxes. The new user is not able to outlook client. The error message is "The connection to Microsoft Exchange is ... rule to create the exchange accounts in both situations. What might be causing this issue?

asked Apr 9, 2015 by ollonw (20 points)
0 votes
1 answer

Hi I'm trying to set up a process where when a user (on prem) is added to an Azure group, they are removed from some conflicting groups automatically. When ... $group -Members $user -Server "domain.onmicrosoft.com" -AdaxesService localhost } } Thanks Matt

asked Mar 2, 2023 by chappers77 (2.0k points)
0 votes
1 answer

I'm learning how to use the Adaxes powershell commands. I've tried searching for a group and that fails to find anything but the local domain. ... one domain. Get-AdmGroup -AdaxesService ADAXES01.domain.com -Credential $myCredentials -Identity Administrators

asked Jul 29, 2020 by ComputerHabit (790 points)
3,347 questions
3,047 answers
7,784 comments
545,022 users