Get list of AD groups a user is a member of
Or with the net user command...
net user /domain username
Single line, no modules necessary, uses current logged user $($env:username), runs from other windows machines:
Qudos to this vbs/powershell article: http://technet.microsoft.com/en-us/library/ff730963.aspx
You can do this in PowerShell pretty easily. I'm sure you can do it with the ds tools too, but they're old and crusty and PowerShell should be used for everything possible nowadays.
Import-Module ActiveDirectory (Get-ADUser userName –Properties MemberOf | Select-Object MemberOf).MemberOf
(Get-ADUser userName –Properties MemberOf).MemberOf
Found a good resource:
Here's how to do it from Windows command prompt:
dsquery user -samid jxd123 | dsget user -memberof | dsget group -samid
If you need to see your own groups, there's
Displays the user groups to which the current user belongs.
The advantage of this command over
net user /domain username is that implicit group memberships are also displayed with