Powershell command Get-ADUser -LDAPFilter to search all users outside a group

0

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.

    
asked by anonymous 26.05.2017 / 16:59

0 answers