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
dsquerycommand allows you to query the Active Directory (AD) service according to specified criteria. E.g. the
dsquery usercommand 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 ]