2.5. CONTINUE
Use this mode to
reactivate a service that you suspended using the Net Pause mode or the
Services console located in the Administrative Tools folder of the
Control Panel. This mode uses the following syntax:
NET CONTINUE service
The following list describes each of the command line arguments.
service
Specifies the
name of the service to reactivate. Always enclose services that contain a
space in their name in quotes. The following list contains typical
service names.
NET LOGON
NT LM SECURITY SUPPORT PROVIDER
SCHEDULE
SERVER
WORKSTATION
2.6. FILE
Use this mode to control
shared files on a system. When used alone, the FILE mode displays a list
of active files on the current system. This mode uses the following
syntax:
NET FILE [id [/CLOSE]]
The following list describes each of the command line arguments.
id
Specifies a particular open file. Queries information about a specific file when used alone.
/CLOSE
Closes the specified file and removes any file locks.
2.7. GROUP
Use the GROUP mode
to query, add, delete, and modify Windows groups. Use this mode alone to
display a list of groups on the domain controller. This command only
works on Windows domain controllers. Use the LocalGroup mode for local
workstations instead. This mode uses the following syntax:
NET GROUP [groupname [/COMMENT:"text"]] [/DOMAIN]
NET GROUP groupname /ADD [/COMMENT:"text"] [/DOMAIN]
NET GROUP groupname /DELETE [/DOMAIN]
NET GROUP groupname username [...] /ADD [/DOMAIN]
NET GROUP groupname username [...] /DELETE [/DOMAIN]
The following list describes each of the command line arguments.
groupname
Defines the name of
the group that you want to query, add, delete, or modify. Providing just
the group name displays the list of users in that group. You also see
the group alias and comment (the comment normally indicates the purpose
of the group).
/COMMENT:
"text"Adds or modifies a
comment for a new or existing group. You may use up to 48 characters to
describe a group. Always enclose comments within quotes.
/DOMAIN
Performs the
specified task on the domain controller for the current domain. Using
this command line switch lets you use a workstation for making changes
to groups and users on the domain controller. The default setting
performs tasks on the local machine, which means that the utility fails
unless you're working at the domain controller.
username
[ ...]
Defines one or more usernames to add or remove from a group. Separate multiple entries with a space.
/ADD
Adds a group or a username to a group.
/DELETE
Removes a group or a username from a group.
2.8. HELP
The HELP mode displays detailed help about the other modes. This mode uses the following syntax:
NET HELP command
The following describes the command line argument.
command
Specifies the command (mode) for which you want help. The Help mode provides NET HELP SERVICES to show the services that you can start and stop using the Net utility. Use NET HELP SYNTAX to see help on using the various Help mode screens. Enter NET HELP HELP at the command line to see a complete list of Help mode screens.
2.9. HELPMSG
The Net utility displays a
wealth of messages to provide information, warnings, and error
indications. In addition, you can run into these messages when using
Windows. For example, the event log often contains network-specific
messages. Often, these messages appear as a number. The HELPMSG mode
accepts a number as input and outputs the information in human readable
form. This mode uses the following syntax:
NET HELPMSG MessageNumber
The following describes the command line argument.
MessageNumber
Specifies a
four-digit error number that Windows displays for information, warning,
or error indication. Type only the four-digit number. You don't need to
provide the NET prefix that Windows displays with some messages. For
example, one common error is NET2182. You'd type Net HelpMsg 2182
and press Enter at the command prompt to display the human-readable
message of "The requested service has already been started."
2.10. LOCALGROUP
Use the LOCALGROUP mode
to query, add, delete, and modify Windows groups on the local machine.
Use this mode alone to display a list of groups on the local machine.
This mode uses the following syntax:
NET LOCALGROUP [groupname [/COMMENT:"text"]] [/DOMAIN]
NET LOCALGROUP groupname /ADD [/COMMENT:"text"] [/DOMAIN]
NET LOCALGROUP groupname /DELETE [/DOMAIN]
NET LOCALGROUP groupname name [...] /ADD [/DOMAIN]
NET LOCALGROUP groupname name [...] /DELETE [/DOMAIN]
The following list describes each of the command line arguments.
groupname
Defines the name of
the group that you want to query, add, delete, or modify. Providing
just the group name displays the list of users in that group. You also
see the group alias and comment (the comment normally indicates the
purpose of the group).
/COMMENT:
"text"Adds or modifies a
comment for a new or existing group. You may use up to 48 characters to
describe a group. Always enclose comments within quotes.
/DOMAIN
Performs the
specified task on the domain controller for the current domain. Using
this command line switch lets you use a workstation for making changes
to groups and users on the domain controller. The default setting
performs tasks on the local machine.
username
[...]
Defines one or more usernames to add or remove from a group. Separate multiple entries with a space.
/ADD
Adds a group or a username to a group.
/DELETE
Removes a group or a username from a group.