Some PowerShell commands for AD that make my life easier.
Run these commands from a machine joined to an AD domain or on a Domain Controller. Install RSAT on your system and make sure that Active Directory Module for Windows PowerShell is enabled in RSAT.
Find all groups an AD user is member of
Get-ADPrincipalGroupMembership username | select name
Get AD User info
Get-ADUser username -Properties *
To get specific user attributes
Get-ADUser username -Properties * | select attr
Get AD group info
Get AD group members
Get-ADGroupMembers group | select name