net |
Allows command-line administration of certain aspects of network connectivity and security.
net [option]
net.exe must be used with one of the following services to give it a specific focus:
accounts
Manages password and logon requirements for user accounts
computer
Adds or removes computer accounts from the domain
config
Displays whether Server and Workstation Services are running and configures these services
continue
Continues paused services
file
Displays a list of shared files that are open and closes them
group
Creates global groups or modifies their membership
help
Provides quick help for a net command from the command line
helpmsg
Provides information on net command error messages
localgroup
Creates local groups or modifies their membership
name
Adds or removes an alias for the computer
pause
Pauses a service
Manages printer queues and print jobs
send
Sends a message to users or computers on the network
session
Manages sessions between a server and connected clients
share
Manages shared folders
start
Manages services
statistics
Displays statistics for the Workstation or Server service
stop
Stops a service
time
Synchronizes the clock on the local machine with a time server
use
Manages connections with shared resources
user
Manages user accounts
view
Lists domains, computers, and shared resources
Because these options are independent of one another and can't be combined in a single command, you can think of them as a family of net commands instead of a single command with distinct options. The individual members of this family are considered in detail in the following entries.
To see the syntax of a net command from the command line, type net help followed by the option that defines the command. For example, to see the syntax for net accounts, type net help accounts.
All net commands also accept the following options:
/y
Automatically answers yes to any prompt generated by the command (useful in batch files)
/n
Automatically answers no to prompts
net accounts, net computer, net config, net continue, net file, net group, net help, net helpmsg, net localgroup, net name, net pause, net print, net send, net session, net share, net start, net statistics, net stop, net time, net use, net user, net view