Since PowerShell has burst onto the scene and many a System Administrator (myself included) have jumped on-board and started using it, it can be easy to forget the handy-dandy Directory Service or DS command-line tools.  Today, I used the dsquery and dsget commands to list all of the groups that a particular user is a member of.  Here’s what I entered on the command-line:

dsquery user -samid jdoe | dsget user -memberof