• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 396
  • Last Modified:

how do i identify users of a domain security group and members of any nexted groups?

how do i identify users of a domain security group and members of any nexted groups in server 2003?

Jason Thomas
Jason Thomas
  • 3
  • 2
2 Solutions
Jason ThomasAuthor Commented:
Thanks, anyone know if there are any windows command line tools that i can use other than VB scripts

Check the below commands,

 1. How to find all members for a particular group
  dsget group "<DN of the group>" -members

1a. How to find all groups for a particular member (including nested groups)
  dsget user "<DN of the user>" -memberof -expand
  dsquery user -samid "username" | dsget user -memberof -expand

Can go through the below link for few more commands..,

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Jason ThomasAuthor Commented:
Many thanks for that helps me a lot. If i run teh first command it does give me teh mebers but it also list other groups. Is there a command that will show me the mebers of the DN and members of any nexted groups that you know of?
dsquery user -samid USER | dsget user -Memberof -expand | dsget Group -samid

Replace USER for your user you need
Jason ThomasAuthor Commented:
Thanks guys. Sorry for the late feedback.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now