atricapilla Asked: 2010-08-24 03:38:20 +0800 CST2010-08-24 03:38:20 +0800 CST 2010-08-24 03:38:20 +0800 CST How can I find all groups a user belongs to via DSQUERY 772 How can I find all groups for a specific user (groups for which the user is assigned) using dsquery? scripting active-directory ldap dsquery 1 Answers Voted Best Answer gWaldo 2010-08-24T04:48:35+08:002010-08-24T04:48:35+08:00 dsquery user -samid [username] | dsget user -memberof -expand | dsget group -samid Good Luck!
Good Luck!