(Windows only) Displays groups for a specified Windows domain.
xp_enumgroups [domain_name]
xp_enumgroups
xp_enumgroups 'PCS'
xp_enumgroups displays all local user groups if no parameter is passed.
A domain is a named collection of computers that share a common user account database and security policy.
A return status of 0 indicates success; 1 indicates failure.
By default, only a system administrator can execute xp_enumgroups. A system administrator can grant this permission to other users.