how to view active directory groups i'm in code example Example: list ad groups in powershell: gpresult /V