Computing.Net > Forums > Windows Server 2003 > Comparing group memberships

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Comparing group memberships

Reply to Message Icon

Name: blink
Date: June 12, 2006 at 06:59:48 Pacific
OS: XP/2K3AS
CPU/Ram: p4
Comment:

How can you create a list of users that are in one group and in a certain second group?

Something in a dos prompt type fashion. You type:

FOO Group1 Group2

and it gives you a list of users that are in both groups.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: June 12, 2006 at 07:02:58 Pacific
Reply:

find "Group1" < my.csv | find "Group2"


If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: blink
Date: June 12, 2006 at 07:53:31 Pacific
Reply:

Cool, should be good. I'm having trouble creating a list of users for one of the groups, probably cause there are too much users in it, how can I circumvent this?

I use this code to make a list:

dsquery group -name logmbtst | dsget group -members | dsget user -samid>bla.txt


0

Response Number 3
Name: Mechanix2Go
Date: June 12, 2006 at 08:30:51 Pacific
Reply:

I read your other thread. You may as well stick to one or the other.

I can't help because I don't have dsquery.

You may get help from someone who does if you give *detailed* info.


If at first you don't succeed, you're about average.

M2


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows Server 2003 Forum Home


Sponsored links

Ads by Google


Results for: Comparing group memberships

Active Directory group memberships www.computing.net/answers/windows-2003/active-directory-group-memberships-/5672.html

Group Memberships to CSV. www.computing.net/answers/windows-2003/group-memberships-to-csv/5661.html

Local group modification permission www.computing.net/answers/windows-2003/local-group-modification-permission/7272.html