windows show domain group membership cmd code example Example: list ad groups in powershell: gpresult /V