Net Localgroup
Adds, displays, or modifies local groups.
net localgroup [groupname [/comment:"text"]] [/domain]
net localgroup groupname {/add [/comment:"text"] | /delete} [/domain]
net localgroup groupname name [ ...] {/add | /delete} [/domain]
Parameters
none
Type net localgroup without parameters to display the name of the server and the names of local
groups on the computer.
groupname
Is the name of the local group to add, expand, or delete. Supply only a groupname to view a list of users or global groups in a local group.
/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 primary domain controller of the current domain.
Otherwise, the operation is performed on the local computer.
This parameter applies only to Windows NT Workstation computers that are
members of a Windows NT Server domain. By default, Windows NT Server computers
perform operations on the primary domain controller.
name [ ...]
Lists one or more usernames or groupnames to add or to remove from a local
group. Separate multiple entries with a space. Names may be local users, users on
other domains, or global groups, but not other local groups. If a user is from
another domain, preface the username with the domain name (for example,
SALES\RALPHR).
/add
Adds a global groupname or username to a local group. An account must first be
established for users or global groups before it is added to a local group
with this command.
/delete
Removes a groupname or username from a local group.
More Information About Net Localgroup
Net Localgroup--Notes
Net Localgroup--Examples