From: anon1m0us Date: 2007-04-24T22:30:04+09:00 Subject: Retrieving Groups from a DSQUERY I need a list of all the groups a user is part of. When I do the DSQuery in returns a bunch of groups. I need to capture the group names. All groups start with CN=group name and end with a comma. How to I capture the group name only, which starts after CN= and ends at the FIRST comma??