If you have a Microsoft Windows domain and want to determine the groups to which an account belongs from a command line interface (CLI), aka a command prompt, you can do so using the
DSQUERY
and DSGET
commands. The dsquery
command allows you to query the
Active Directory (AD) service according to specified criteria. E.g. the
dsquery user
command finds users in the directory. By adding a
user name at the end of the command, you can view information for that user.
[ More Info ]