Monday, 19 August 2013

Get list of AD groups a user is a member of

Get list of AD groups a user is a member of

Suppose I have the user id of a user in Active Directory. I'd like to get
a list of all AD groups in which that user is currently a member of. How
can I do this from the Windows command line?
I've tried the following:
dsget user "DC=jxd123" -memberof
Error:
dsquery failed:'-memberof' is an unknown parameter.
type dsquery /? for help.

No comments:

Post a Comment