Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 394
  • 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?

Thanks
0
Jason Thomas
Asked:
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
0
 
vin_shooterCommented:
Hi,

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..,

http://social.technet.microsoft.com/wiki/contents/articles/2195.active-directory-dsquery-commands.aspx
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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?
0
 
MisterTwelveCommented:
dsquery user -samid USER | dsget user -Memberof -expand | dsget Group -samid

Replace USER for your user you need
0
 
Jason ThomasAuthor Commented:
Thanks guys. Sorry for the late feedback.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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