ejmeado
asked on
DSQuery command with a not equal to syntax??
I have successfully run a dsquery to find accounts with a primary group of domain users.
Is it possible to run a dsquery to users whos primary group is not equal to a group ID. Thank you
Is it possible to run a dsquery to users whos primary group is not equal to a group ID. Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Do it in front of the primary; see my screenshot using adfind by Joe Richards http://www.joeware.net/freetools/tools/adfind/index.htm
I first looked for all accounts who had a primarygroupid of 513 then added the not! and it only returned the account that didn't have 513 as its primary group
513 is Domain Users
Thanks
Mike
primarygroupid.png
I first looked for all accounts who had a primarygroupid of 513 then added the not! and it only returned the account that didn't have 513 as its primary group
513 is Domain Users
Thanks
Mike
primarygroupid.png
ASKER
Thank you, that worked a treat.
ASKER