Had to look this one up today, as I can’t remember the last time I needed this, but finding out what users are part of a Windows group, or what groups a user belongs to comes in pretty handy now and then. Here is the command prompt code:
To list of groups for which a user belongs:
net user jsmith /domain
To list of members of a group:
net group some-user-group /domain