dos command to check user domain groups code example Example: list ad groups in powershell: gpresult /V