Allen Pomeroy

Blog of an IT security specialist

Windows/AD Notes

Tags:

Find all the AD groups a particular user belongs to:
dsquery user -samid username | dsget user -memberof

Find all members of an AD group:
dsquery group -samid groupname | dsget group -members

.

Tags:

Leave a Reply

© 2010 Allen Pomeroy. All Rights Reserved. This is the personal website of Allen Pomeroy. Opinions expressed are not necessarily those of my employer.