Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2
Adds, displays, or modifies global groups in domains.
net group [GroupName [/comment:"Text"]] [/domain]
net group [GroupName{/add [/comment:"Text"] | /delete} [/domain]]
net group [GroupName UserName[ ...] {/add | /delete} [/domain]]
- GroupName
Specifies the name of the group to add, expand, or delete. Specify a group name to view a list of users in a group only.
- /comment: "Text"
Adds a comment for a new or existing group. The comment can have as many as 48 characters. Enclose the text in quotation marks.
- /domain
Performs the operation on the domain controller in the current domain. Otherwise, the operation is performed on the local computer.
- /add
Adds a group, or adds a user name to a group. You must establish an account for users that you add to a group with this command.
- /delete
Removes a group, or removes a user name from a group.
- UserName[...]
Lists one or more user names to add to or remove from a group. Separate multiple user name entries with a space.
- net help Command
Displays help for the specified net command.
Used without parameters, net group displays the name of a server and the names of groups on the server.
You can also type net groups.
Use net group to group users who use the network in the same or similar ways. When you assign rights to a group, each member of the group automatically has those rights. In the output, net group precedes groups that include both users and groups with an asterisk (*).
The net group output of groups on the server is similar to the following:
Group Accounts for \\PRODUCTION ---------------------------------------------- *Domain Admins *Domain Users
To display a list of all of the groups on the local server, type:
net group
To add a group called Exec to the local user accounts database, type:
net group exec /add
To add a group called Exec to the domain database, type:
net group exec /add /domain
To add the existing user accounts stevev, ralphr, and jennyt to the Exec group on the local computer, type:
net group exec stevev ralphr jennyt /add
To add the existing user accounts stevev, ralphr, and jennyt to the Exec group in the domain database, type:
net group exec stevev ralphr jennyt /add /domain
To display users in the Exec group, type:
net group exec
To add a comment to the Exec group record, type:
net group exec /comment:"The executive staff"
Format | Meaning |
---|---|
Italic |
Information that the user must supply |
Bold |
Elements that the user must type exactly as shown |
Ellipsis (...) |
Parameter that can be repeated several times in a command line |
Between brackets ([]) |
Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} |
Set of choices from which the user must choose only one |
|
Code or program output |