You can do an LDAP query with ADUC.. Use this string:
(&(objectCategory=user)(objectClass=user)(!primaryGroupID=513))

-----Original Message-----
From: Jeremy Anderson [mailto:jer...@mapiadmin.net] 
Sent: Friday, February 13, 2009 12:52 PM
To: NT System Admin Issues
Subject: Primary Group Membership

 My google FU seems to be failing.

I need a quick n Dirty script to run against all users in the domain and
list their UPN and Primary Group membership.  Or, even better, a list of
any user in the domain that has anything BESIDES 'domain users' as their
primary group.

TIA

Jeremy

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to