How to list Active Directory groups for a pc and user

I have been using Microsoft Group Policy more lately and would like to post this as a reminder on how to pull information from Active Directory.

A good troubleshooting tool for group policy is the command “gpresult /r”

This should be run from the command prompt as the user logged in.

This will show which policies have been applied as well as list the active directory groups the user and computer are a member of.