Name

net group

Synopsis

Creates global groups or modifies their membership.

Syntax

net group [groupname [/comment:"text"] ] [/domain] 
net group groupname {/add [/comment:"text"] | /delete} [/domain]
net group groupname 
                     username [...] {/add | /delete} [/domain]

Options

none

Lists global groups on the server.

groupname

Is the name of a group to create, delete, or modify the membership of.

/comment:" text "

Describes a group (up to 48 characters).

/domain

If omitted, performs the command on the local computer (which must be a domain controller). To manage groups from a workstation, use this switch.

username [...]

Adds or removes user account(s) from the group (separate with spaces).

/add

Creates a new group or adds existing users to an existing group.

/delete

Deletes a group or removes users from a group.

Examples

List all global groups in the domain:

                     net group
Group Accounts for \\TEST
----------------------------------------------------
*Cert Publishers
*DnsUpdateProxy
*Domain Admins
*Domain Computers
*Domain Controllers
*Domain Guests
*Domain Users
*Group Policy Creator Owners
The command completed successfully.

Create a new global group called Support, and give it the description “Support staff “:

                     net group support /add /comment:"Support staff"
The command completed successfully.

Add users sally and mktulloch to Support:

                     net group support sally mktulloch /add
The command completed successfully.

View the membership of Support:

                     net group support Group name support Comment Support staff Members ...

Get Windows 2000 Administration in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.