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 Membershi
Ran it in LDP.exe. Worked perfectly. Thanks
-Original Message-
From: Damien Solodow [mailto:damien.solo...@ibcschools.edu]
Sent: Friday, February 13, 2009 10:03 AM
To: NT System Admin Issues
Subject: RE: Primary Group Membership
You can do an LDAP query with ADUC.. Use this string
adfind -default -f
"(&(objectCategory=person)(objectclass=user)(!primaryGroupID=513))"
-nodn samaccountname userprincipalname primarygroupID
-Original Message-
From: Jeremy Anderson [mailto:jer...@mapiadmin.net]
Sent: Friday, February 13, 2009 9:52 AM
To: NT System Admin Issues
Subject: P
Powershell with the quest tools:
get-qaduser -sizelimit 0 | ?{$_.primarygroupid -ne 513}
On Fri, Feb 13, 2009 at 9:52 AM, Jeremy Anderson wrote:
> 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