On Tue, 2 Jan 2007 11:34:31 -0600 "Thommes, Michael M." <[EMAIL PROTECTED]> wrote:
> I am trying to get a list of all of the users in the builtin group > "Domain Users". I am using the following commands, but get incomplete > results. Can someone tell me why? Thanks! And Happy New Year to > everyone! > > > > dsquery group -name "domain users" | dsget group -members > > c:\temp\domain_users.txt Domain Users is the primary group for all users so maintaining a membership list is redundant. Simply enumerate all users (or perhaps filter on primaryGroupID 513). dsquery * -filter (primaryGroupID=513) Mike -- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.activedir.org/ma/default.aspx