xp_enumgroups

(Windows only) Displays groups for a specified Windows domain.

Syntax

xp_enumgroups [domain_name]

Parameters

Examples

Usage

There are additional considerations when using xp_enumgroups:
  • 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.

Permissions

By default, only a system administrator can execute xp_enumgroups. A system administrator can grant this permission to other users.