Net command Instruction Set

Source: Internet
Author: User
Tags net command net time net send
This article combines Windows 98, Windows workstation, and Windows Server with
I hope you can give me a more comprehensive explanation:
(1) The net command is a command line command.
(2) Manage the network environment, services, users, and login .... And other local information
(3) Windows 98, Windows workstation, and Windows NT both have built-in net commands.
(4) but the net commands of Windows 98 are different from those of workstation and NT.
(5) The net commands in workstation and server are basically the same.
(6) get help
<1> in NT, you can use a graphical method to start-> help-> index-> input net.
<2> the command can use the character format. Net /? Or. NET or. NET Help to get help from some methods. net
Command/help or net HELP command or net command /? In addition, the net helpmsg message # is a four-digit error.
(7) force all net commands of the parameter to accept options/Yes and/NO (abbreviated as/y and/N ). [Simply put, the system is asked in advance.
One answer]
(8) Some commands are generated immediately and saved permanently. Be careful when using them.
(9) The corresponding graphic tool solution can be found for the functions of the net command.
(10) command composition command parameter option │ ......
I have said a lot about it, but it is actually useful for 6 and 7. There are two other things:
(1) some parameters in the NT net command can be used only in the server environment.
(2) Some parameters in the net command of Win98 cannot be used in DOS-win and can only be used in DOS environments.

The following describes the basic usage of different parameters of the net command:

(1) Net View
Usage: displays the list of domains, computers, or shared resources of a specified computer.
Command Format: Net view [\ computername │/domain [omainname]
Parameter introduction:
<1> enter a net view without parameters to display the computer list of the current domain.
<2> \ computername indicates the computer on which the shared resources are to be viewed.
<3>/domain [omainname] specifies the domain for which you want to view available computers
Simple Example
<1> net view \ yfang: view the list of resources shared by yfang.
<2> net view/domain: Love: view the machine list in the love domain.

(2) Net user
For use: add or change user accounts or display user account information. This command can also be written as net users.
Command Format: Net user [username [Password │ *] [Options] [/domain]
Parameter introduction:
<1> type A net user without parameters to view the user account list on the computer.
<2> add, delete, change, or view the username.
<3> password: assign or change the password for the user account.
<4> * enter the password.
<5>/domain: perform operations in the master domain controller of the computer's primary domain.
Simple Example:
<1> net user yfang: view User yfang Information

(3) net use
Purpose: connect the computer or disconnect the computer from the shared resources, or display the connection information of the computer.
Command Format: net use [devicename │ *] [\ computername \ sharename [\ volume] [Password │
*] [/User: [domainname \] username] [[/delete] │ [/persistent: {Yes │ no}]
Parameter introduction:
Type "net use" without parameters to list network connections.
Devicename specifies the name of the resource to be connected to or the name of the device to be disconnected. \ Computername \ sharename server and total
The name of the resource.
Password: the password used to access shared resources.
* The system prompts you to enter the password. /User specifies another user to connect.
Domainname specifies another domain.
Username specifies the username to log on.
/Home connects the user to its home directory
/Delete cancels the specified network connection.
/Persistent controls the use of permanent network connections.
Simple Example:
<1> net use e :\\ yfang \ Temp: Create the \ yfang \ Temp directory as an edisk.
<2> net use E: \ yfang \ Temp/delete disconnected

(4) Net time
Usage: Synchronize the clock of a computer with the time of another computer or domain.
Command Format: Net time [\ computername │/domain [: Name] [/set]
Parameter introduction:
<1> \ computername: name of the server to be checked or synchronized.
<2>/domain [: Name] specifies the domain to be synchronized.
<3>/set: Synchronize the clock of the current computer with the clock of the specified computer or domain.
The following four parameters are related.

(5) Net start
For use: start the service or display the list of started services.
Command Format: Net start service

(6) Net pause
For use: Pause a running service.
Command Format: Net pause Service

(7) Net continue
For use: reactivate the suspended service.
Command Format: Net continue service

(8) net stop
For use: Stop the Windows NT network service.
Command Format: net stop service
Parameter Introduction: Let's see what these services are.
<1> Alerter (alert)
<2> Client Service for NetWare (Netware Client Service)
<3> ClipBook server (Clipboard server)
<4> Computer Browser)
<5> directory Replicator)
<6> FTP Publishing Service (FTP) (FTP distribution service)
<7> lpdsvc
<8> Net Logon <9> Network DDE network)
<10> Network dde dsdm (Network dde dsdm)
<11> network monitor agent)
<12> nt lm Security Support Provider (provided by nt lm Security Support)
<13> OLE (Object link and embedding)
<14> Remote Access Connection Manager (Remote Access Connection Manager)
<15> Remote Access isnsap Service (Remote Access to isnsap)
<16> remote access server (remote access server)
<17> Remote Procedure Call (RPC) Locator (Remote Procedure Call Locator)
<18> Remote Procedure Call (RPC) Service (Remote Procedure Call Service)
<19> schedule)
<20> Server)
<21> Simple TCP/IP Services (Simple TCP/IP Service)
<22> SNMP
<23> Spooler (background printer)
<24> TCP/IP NetBIOS Helper (TCP/IP NetBIOS auxiliary tool)
<25> UPS (26) workstation (Workstation)
<27> messenger)
<28> DHCP Client
<29> services below EventLog can only be used on NT Server
<1>) file server for Macintosh
<2> gateway service for NetWare
<3> Microsoft DHCP server
<4> Print Server for Macintosh
<5> Remoteboot
<6> Windows Internet Name Service

(9) Net statistics
Usage: displays statistics of local workstation or server services.
Command Format: Net statistics [workstation │ server]
Parameter introduction:
<1> type "net Statistics" without parameters to list the running services whose statistical information is available. <2> display local work on workstation
The service statistics.
<3> server displays the statistics of local server services.
Simple Example:
<1> net statistics server │ more: displays server service statistics.

(10) net share
Usage: creates, deletes, or displays shared resources.
Command Format: net share sharename = drive: path [/users: Number │/unlimited]
[/Remark: "text"]
Parameter introduction:
<1> type "net share" without parameters to display information about all shared resources on the local computer.
<2> sharename is the Network Name of the shared resource.
<3> drive: path specifies the absolute path of the shared directory.
<4>/users: number indicates the maximum number of users who can access Shared resources at the same time.
<5>/unlimited does not limit the number of users simultaneously accessing shared resources.
<6>/remark: "text": Add comments about the resource, and enclose the comments in quotation marks.
Simple Example:
<1> net share mylove = c: \ Temp/remark: "My first share" share c: \ temp with mylove as the sharing name
<2> net share mylove/delete: Stop sharing the mylove directory.

(11) Net session
Usage: list or disconnect the Sessions of the Local Computer and the client connected to it, or you can write it as net sessions or net sess.
Command Format: Net session [\ computername] [/delete]
Parameter introduction:
<1> type A net session without parameters to display information about all sessions with the local computer.
<2> \ computername indicates the computer on which the session is to be listed or disconnected.
<3>/delete ends the session with the \ computername computer and closes all the computers during the session?
Simple Example:
<1> net session \ yfang: display the list of client sessions with the computer name yfang.

(12) net send
For use: send messages to other users, computers, or communication names on the network.
Command Format: net send {name │ * │/domain [: Name] │/users} Message Parameter introduction:
<1> name: the user name, computer name, or communication name of the message to be sent.
<2> * send messages to all group names.
<3>/domain [: Name] sends a message to all the names in the computer domain.
<4>/users sends messages to all users connected to the server.
<5> message is the text sent by the message.
Simple Example:
<1> net send/users server will shutdown in 5 minutes. send messages to all users connected to the server

(13) Net print
For use: displays or controls print jobs and print queues.
Command Format: Net print [\ computername] job # [/hold │/release │/delete]
Parameter introduction:
<1> computername: name of the computer that shares the printer queue.
<2> the sharename command prints the queue name.
<3> job # ID assigned to the print job in the printer queue.
<4>/hold: when job # is used, wait for the print job in the printer queue.
<5>/release the reserved print job.
<6>/delete: deletes a print job from the printer queue.
Simple Example:
<1> net Print \ yfang \ seeme: list the directory of the seeme printer queue on \ yfang computer

(14) Net Name
For use: add or delete a message name (sometimes called an alias), or display a list of names of messages received by the computer.
Command Format: Net name [name [/Add │/delete]
Parameter introduction:
<1> type A net name without parameters to list the currently used names.
<2> name indicates the name of the received message.
<3>/Add: add the name to the computer.
<4>/delete the name from the computer.

(15) Net localgroup
For use: add, display, or change a local group.
Command Format: Net localgroup groupname {/Add [/comment: "text"] │/delete} [/domain]
Parameter introduction:
<1> type net localgroup without parameters to display the server name and the Local Group Name of the computer.
<2> groupname: name of the Local Group to be added, expanded, or deleted.
<3>/comment: "text": Add comments to new or existing groups.
<4>/domain operations are performed in the master domain controller of the current domain. Otherwise, only operations are performed on the local computer?
<5> name [...] lists one or more user names or group names to be added to or deleted from a local group.
<6>/Add: add the global group name or user name to the local group.
<7>/delete deletes the group name or user name from the local group.
Simple Example:
<1> net localgroup love/Add: add the local group named Love to the local user account database.
<2> net localgroup love: show users in the love Local Group

(16) net group
For use: add, display, or change global groups in the Windows NT Server domain.
Command Format: net group groupname {/Add [/comment: "text"] │/delete} [/domain]
Parameter introduction:
<1> type A net group without parameters to display the server name and the group name of the server.
<2> groupname: group to be added, expanded, or deleted.
<3>/comment: "text" adds comments to the new or existing group. <4>/domain: execute this operation in the master domain controller of the current domain.
Otherwise, the operation will be performed on the local computer?
<5> the username [...] List displays one or more users to be added to or deleted from a group.
<6>/Add add a group or add a user name to the group.
<7> delete a group or delete a user name from the group.
Simple Example:
<1> net group love yfang1 yfang2/Add existing user accounts yfang1 and yfang2 to the local computer's love

(17) Net File
Usage: displays the shared file names opened on a server and the number of locked files.
Command Format: Net file [ID [/close]
Parameter introduction:
<1> type A net file without parameters to obtain the list of files opened on the server.
<2> ID file ID.
<3>/close the opened file and release the lock record.

(18) Net config
Usage: displays the currently running configurable service, or displays and changes the settings of a service.
Command Format: Net config [Service [Options]
Parameter introduction:
<1> type "net config" without parameters to display the list of configurable services.
<2> services configured by using the net config command (server or workstation)
<3> specific options of the options service.

(19) net computer
For use: add or delete a computer from the domain database.
Command Format: net computer \ computername {/Add │/del}
Parameter introduction:
<1> \ computername specifies the computer to be added to or deleted from the domain.
<2>/Add: add the specified computer to the domain.
<3>/DEL: Delete the specified computer from the domain.
Simple Example:
<1> net computer \ CC/Add: add the computer CC to the compute domain

(20) Net accounts
Usage: updates the user account database, changes the password, and logon requirements for all accounts.
Command Format: Net accounts [/forcelogoff: {minutes │ no}] [/minpwlen: length] [/maxpwage:
{Days │ unlimited}] [/minpwageays] [/uniquepw: number] [/domain]
Parameter introduction:
<1> enter the Net accounts without parameters to display the current password settings, logon time limit, and domain information.
<2>/forcelogoff: {minutes │ no} is set when the user account or valid logon time expires.
<3>/minpwlen: length specifies the minimum number of characters in the password of the user account.
<4>/maxpwage: {days │ unlimited} sets the maximum number of days for which the user account and password are valid.
<5>/minpwageays sets the minimum number of days that the user must keep the original password.
<6>/uniquepw: Number requires the user to change the password, the same password must be used again after the number is passed
<7>/domain performs this operation on the master domain controller of the current domain. <8>/sync when used for the master domain controller, this command causes all
Backup Domain Controller Synchronization
Simple Example:
<1> Net accounts/minpwlen: 7
Set the minimum number of characters in the password of your account to 7.

---------------------- The above describes the basic usage of the net command in winnt

---------------------- Let's take a look at the basic usage of the net command in Win98.
In Win98, the net command also has some parameters, including some parameter names and functions, as well as simple usage and corresponding parameters in winnt.
Same parameter usage
There are
(1) Net time command
(2) Net print command
(3) net use command
(4) Net view command
In Win98, the net command has some parameters whose names are the same as those of the corresponding parameters in WINNT, but their usage is
Some differences
There are
(1) Net start
For use: Start the corresponding service. (Cannot be used in DOS-Win)
Command Format: Net start [basic │ nwredir │ workstation │ netbind │ netbeui │ nwlink]
[/LIST] [/Yes] [/verbose]
(2) net stop
For use: Stop the corresponding service. (It cannot be used in DOS-win)
Command Format: net stop [basic │ nwredir │ workstation │ netbeui │ nwlink] [/Yes]

In Win98, the net command also has some parameters that are available only under 98.
There are
(1) Net diag
Usage: run the MS diagnostics program to display the diagnostic information of the network.
Command Format: Net diagnostics [/names │/status]
(2) Net init
For use: Protocol or NIC driver is not loaded by binding (cannot be used in DOS-Win)
Command Format: Net initialize [/dynamic]
(3) Net Logoff
Usage: disconnected shared resources (cannot be used in DOS-Win)
(4) Net Logon
For use: Login in workgroup (not in DOS-Win)
Command Format: Net Logon [user [Password │?] [/Domain: Name] [/Yes] [/savepw: No]
(5) Net Password
For use: Change your network login password (not in DOS-Win)
Command Format: Net password \ computer │/domain: name [user [oldpassword [newpassword]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.