Link to home
Start Free TrialLog in
Avatar of Allan
AllanFlag for United States of America

asked on

Query For AD Group

In Win7 Pro; what's the equivalent to this:

dsquery user -samid <AD Account>|DSGET USER -memberof -expand

This will return the AD and email group that the user belongs to.

Looks like dsquery is not recognized in Win7.

TIA!
Avatar of remmett70
remmett70
Flag of United States of America image

Dsquery does work on windows 7.  Do you have RSAT installed.
Avatar of Allan

ASKER

SOLUTION
Avatar of KenMcF
KenMcF
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Allan

ASKER

Thanks KenMcF; I will get started now with the install...
yes.  You need to have RSAT installed and turn the features on.
Avatar of Allan

ASKER

ok; I have it installed and checked RSAT featured enabled like this:

User generated image
Tried running in cmd:

dsquery user -samid <AD Account>|DSGET USER -memberof -expand

Same error. Is reboot needed? Thanks!
Do you have "AD DS Tools checked"?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Allan

ASKER

super guys!
Really appreciate the help!
I will split points if you don't mind. Thanks again.
Avatar of Allan

ASKER

g-r-e-a-t-!