We help IT Professionals succeed at work.

Find Groups which has groups as its members.

231 Views
Last Modified: 2010-03-05
Hi,

I want to find only groups which has a group as its member.Is there a script to do this.

Regards
Sharath
Comment
Watch Question

Ron MalmsteadInformation Services Manager
CERTIFIED EXPERT

Commented:
dsquery group -name * -limit 10000 | dsget group -memberof
or
dsquery group -name * -limit 10000 | dsget group -memberof -expand

Author

Commented:
Both these commands just displays the CN

"CN=Users-SGR,OU=Security Groups,OU=IND,OU=Countries,DC=Development,DC=Group,DC=co,DC=in"

Author

Commented:
Any help...

Commented:
I would recommend ADManager, u can get it here:

http://manageengine.adventnet.com/products/ad-manager/index.html

But you can do that from active directory it self, right click the user, and check the member of tab and you will see all his group memberships.

Author

Commented:
If i wanted to thinks for single group there are many on the net.Thats the problem i want to do it on all the groups...

For all my queries i would mostly require a script which can scall all users,Groups or computers to get such data.

If Admanager can do this for group and find all the groups which are in it .It would be great...

THX
Sharath
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.