Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using GRPLIST.EXE from JRBUtils I can get a list of all members in one group or another, or even a list of members that appear in multiple groups (excluding the indivudals not in one or the other).

What I want though is a list of all members from GROUP A & B but no have any duplicate names.

We have 600+ members in one list, around 300-400 in another, however there are members in one list, not in the other and some that are in both.

Will be needing to import a list as a result into a distribution list in AD.

share|improve this question

I can't seem to dig out the syntax for the utility, but it sounds like the following pseudo-logic should work for you. You'll need two searches:

  1. One to grab, "Members of Group A NOT IN Group B"
  2. One to grab, "Members of Group B'

These two should give you two text-files that together contain the unique members of both Group A and Group B. Or if you're piping through to a utility that's populating the group it should work just fine. Create the group with the first search (dsadd, for instance), and modify it with the second (dsmod). Or, since JRBTools has AD tools now (didn't know that!) the text-files created by grplist should be comprehensible to adgrpadd

share|improve this answer
I am pretty sure that while you can specify Members of Group B with JRB, I do not think you can specify the members NOT in Group B part. – geoffc Sep 16 '09 at 2:31

Please try to ask there:, that forum is dedicated for this kind of questions.

Also, I believe author of this tool still monitors this forum:

share|improve this answer
John Baird is a really cool guy. Often if you explain what you want, he will add it to the tool. – geoffc Sep 16 '09 at 2:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.