The syntax of this command is:
NET LOCALGROUP [localgroupname[/COMMENT:"text"]] [/DOMAIN:domainname]
localgroupname {/ADD [/COMMENT:"text"] |
/DELETE} [/DOMAIN:domainname]
localgroupname username[ ...] groupname[ ... ] {/ADD | /DELETE}
[/DOMAIN:domainname]
This command adds, displays, or modifies local groups on a server
or in a domain.
COMMENTS
To display the names of local groups on the server, type
"net localgroup" without options. To display the names of local groups
in a particular domain, type "net localgroup /domain:domainname".
To operate on a particular local group, type
net localgroup localgroupname ...
OR
net localgroup 'localgroupname containing spaces' ...
OR
net localgroup "localgroupname containing spaces" ...
E.G.
net localgroup sales OR
net localgroup 'Server Operators' OR
net localgroup "Server Operators"
This command can also be typed "net localgroups".
A display of local groups is similar to the following:
Aliases for \\PRODUCT_ASU
---------------------------------------------------------------------
*Account Operators *Administrators *Backup Operators
*Guests *Print Operators *Replicator
*Server Operators *Users
EXAMPLES
At a UNIX system console, to display a list of all the local groups
in the local accounts database, type the following:
net localgroup
Note that on a primary or backup domain controller, the local
accounts database is the same as the domain database, but on a
member server, the local accounts database is specific to the
server.
To display a list of all the local groups in a domain called
market_dom, type the following:
net localgroup /domain:market_dom
This is how to display the local groups in the domain from a member
server, for example. It is also how to display the local groups in
a trusted domain, regardless of the local machine's role in its own
domain.
To add a local group called "sales" to the local accounts database,
type the following:
net localgroup sales /add
To add the existing user accounts "stevev" and "jennyt", and existing
group "mailusers" to the "sales" group in a domain called market_dom,
type the following:
net localgroup sales mailusers stevev jennyt /add /domain:market_dom
To display members of the "sales" group in a domain called market_dom,
type the following:
net localgroup sales /domain:market_dom
To add a comment to the "sales" group record in the local accounts
database, type the following:
net localgroup sales /comment:"The sales staff."
To delete a user named "jennyt" in domain sales_dom from the
"sales" group in a domain called market_dom, type the following:
net localgroup sales sales_dom\\jennyt /delete /domain:market_dom
SEE ALSO
For information about See
_____________________ _________
Getting help with network commands net help
Assigning resource permissions to net perms
groups and users
Managing user accounts net user
Backup and primary domain controllers net accounts
Managing global groups net group
To get Help on command options, type "net help {command} /options | more".
To get Help one screen at a time, type "net help {command} | more".