I often use the net user
command to have a look at AD groups for a user:
net user /DOMAIN
This works well, howeve
Much easier way in PowerShell:
Get-ADPrincipalGroupMembership
Requirement: the account you yourself are running under must be a member of the same domain as the target user, unless you specify -Credential
and -Server
(untested).
In addition, you must have the Active Directory Powershell module installed, which as @dave-lucre says in a comment to another answer, is not always an option.
For group names only, try one of these:
(Get-ADPrincipalGroupMembership ).Name
Get-ADPrincipalGroupMembership |Select Name