What is the command to search all domain users who do not belong to a certain GG?
I have already tried using:
Get-ADUser -ldapfilter {(&(name*)(!memberof=*GG_DI-ADM))} -properties * | select name, samaccountname, enabled
The business is that in GG have 30 people and when I search without the negative condition no one appears. When I put equal to the code above all users appear without restricting the group.