Windows NT only Displays groups for a specified Windows NT domain.
xp_enumgroups [domain_name]
is the Windows NT domain for which you are listing user groups.
Lists all user groups on the Windows NT computer running XP Server:
xp_enumgroups
Lists all user groups in the PCS domain:
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.