Net Command Detailed

Source: Internet
Author: User
Tags net command net time sessions net send
This article combines Windows WORKSTATION and Windows SERVER Three operating systems to explain the NET commands, hoping to be comprehensive
First say something:
(1) NET command is a command line command.
(2) Management of network environment, services, users, landing .... and other local information
(3) Win, win WORKSTATION and win NT both have built-in NET commands.
(4) But WIN 98 's net command differs from the WORKSTATION and NT net commands.
(5) The NET commands in WORKSTATION and SERVER are basically the same.
(6) Get help
<1> in NT can be graphically in the way, start-help-index-"input NET"
<2> under COMMAND can be in character mode, NET/? or net or net help to get some methods of the appropriate method of the helper net Command/help or Net aid command or NET command/another for error net HELPMSG message# is 4 digits
(7) Force parameter All NET command accept Options/yes and/no (abbreviated to/y and/n). [The simple answer is to give the system a question beforehand]
(8) Some orders are immediately effective and permanent preservation, the use of time to be cautious?
(9) For the function of the NET command can find the corresponding graphics tool solution?
(10) The component Command parameter options | Parameter Options | Parameter Options | ...

Scrofula Wordy said a lot of, in fact is 6 and 7 useful, oh, there are two other things:
(1) There are some parameters in the NT NET command that can only be used in the SERVER environment
(2) There are some parameters in the WIN98 NET command that cannot be used in Dos-win and can only be used in a DOS environment?

The following basic usage of the different parameters of the NET command makes some preliminary introduction:

Role: Displays a list of domains, lists of computers, or shared resources for a specified computer.
Command format: NET view [//computername |/domain[:d Omainname]]
Parameter introduction:
<1> Type a net view with no parameters to display a list of computers in the current domain.
&LT;2&GT;//COMPUTERNAME specifies the computer for which you want to view shared resources.
<3>/domain[:d Omainname] Specifies a simple case of the domain for which you want to view available computers

<1>net View//yfang The list of shared resources for Yfang.
<2>net View/domain:love View the list of machines in the love domain.

Role: 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 NET user with no parameters to view a list of user accounts on your computer.
<2>username Add, remove, change, or view user account names.
<3>password assign or change a password for a user account.
<4>* prompts for a password.
<5>/domain performs operations on the primary domain controller of the computer's primary domain.
Simple example:
<1>net User Yfang View information about users Yfang

(3) NET use
Role: Connect a computer or disconnect a computer from a shared resource, or display connection information for a computer

Command format: NET USE [devicename | *] [//computername/sharename[/volume]]
[Password | *]] [/user:[domainname/]username] [[/delete] | [/persistent:{yes | no}]]
Parameter introduction:
Type net use with no parameters to list network connections.
DEVICENAME Specifies the name of the resource to which you want to connect or the name of the device to disconnect.
Computername/sharename the name of the server and the shared resource.
Password The password to access the shared resource.
* Prompt to type password. /USER Specifies a different user to connect to.
domainname specifies another domain.
USERNAME Specifies the user name for the login.
/home connect users to their host directory
/delete Cancel the specified network connection.
/persistent controls the use of permanent network connections.
Simple example:
<1>net use E://yfang/temp to establish//yfang/temp directory as e-disk
<2>net use e://yfang/temp/delete disconnect

(4) NET time
Function: Synchronize the computer's clock with the time of another computer or domain.
Command format: NET time [//computername |/domain[:name]] [/set]
Parameter introduction:
<1>//computername the name of the server to check or synchronize.
<2>/domain[:name] Specifies the domain to synchronize with time.
<3>/set synchronizes the computer clock with the specified computer or domain clock.
The following 4 parameters are related, so introduce together

(5) Net Start
Function: Start the service, or display a list of started services.
Command format: NET start service

(6) Net Pause
Role: Suspend a running service.
Command format: NET Pause service

(7) Net Continue
Role: Reactivate the suspended service.
Command format: NET Continue Service

Function: Stop Windows NT Network Service.
Command format: net stop service?
Parameter description: Let's see what these services are.
<1>alerter (Alert)
<2>client Service for NetWare (NetWare Client Services)
<3>clipbook Server (ClipBook servers)?
<4>computer Browser (Computer browser)?
<5>directory Replicator (Directory replicator)?
&LT;6&GT;FTP Publishing Service (FTP) (FTP publishing services)?
<8>net logon (network logon) <9>network DDE network DDE)?
<10>network DDE dsdm (Network dde dsdm)?
<11>network Monitor Agent (Network monitoring agents)?
<12>nt LM Security Support provider (provided by NT LM secure support)?
<13>ole (Object linking and embedding)?
<14>remote Access Connection Manager (Remote Access Connection manager)?
<15>remote Access ISNSAP service (remote access ISNSAP services)?
<16>remote Access server (remote access servers)?
<17>remote procedure Call (RPC) locator (remote procedure invoke locator)?
<18>remote procedure Call (RPC) service (Remote procedure invocation services)?
<19>schedule (Dispatch)?
<20>server (server)?
<21>simple TCP/IP Services (Simple TCP/IP service)?
<23>spooler (background print program)?
<25>ups () workstation (workstation)?
<27>messenger (Messenger)?
&LT;28&GT;DHCP client?
<29>eventlog The following service 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?
<<6>>windows Internet Name Service?

(9) Net Statistics?
Function: Displays statistics for the local workstation or Server service.
Command format: NET statistics [workstation | server]?
Parameter introduction:?
<1> Type a net statistics with no parameters to list the running services whose statistics are available.
<2>workstation displays statistics about the local Workstation service.
<3>server displays statistics about the local server service.?
Simple example:?
<1>net Statistics Server | More displays the Server service statistics?

(10) Net Share?
Function: Create, delete, or display shared resources.
Command format: NET share Sharename=drive:path [/users:number |/unlimited]?
[/remark: "Text"]?
Parameter introduction:?
<1> Type a net share with no parameters to display information about all the shared resources on the local computer.
<2>sharename is the network name of the shared resource.?
&LT;3&GT;DRIVE:PATH specifies the absolute path of the shared directory.?
<4>/users:number sets the maximum number of users who can access a shared resource at the same time.
<5>/unlimited does not limit the number of users who concurrently access shared resources.
<6>/remark: "Text" adds a comment about the resource, and the comment text is quoted in quotation marks.
Simple example:?
<1>net share Mylove=c:/temp/remark: "My A-share" to mylove share for shared names?
<2>net share Mylove/delete stop sharing mylove directory?

(11) Net session?
Action: Lists or disconnects the session of the local computer and the client to which it is connected, or it can be written 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 identifies the computer on which you want to list or disconnect sessions.
<3>/delete all??? of the computer during the end of the session with the//computername computer and shutting down this session
Simple example:?
<1>net session//yfang to display a list of client sessions information for the computer named Yfang.

(12) Net Send?
Role: Send a message to another user, computer, or communication name on the network.?
Command format: NET send {name | * |/domain[:name] |/users} message parameter description?
: ?
<1>name the user name, computer name, or communication name to which you want to send the message.?
<2>* sends a message to all the names in the group.?
<3>/domain[:name] sends a message to all the names in the computer domain.?
<4>/users sends messages to all users who are connected to the server.
<5>message the text sent as a message.?
Simple example:?
<1>net Send/users server would shutdown in 5 minutes. To all connected to the server? Users to send messages?

(13) Net Print?
Functions: Displays or controls print jobs and print queues.
Command format: NET print [//computername] job# [/hold |/release |?
Parameter introduction:?
<1>computername the computer name of the shared printer queue.
<2>sharename print queue name.?
<3>job# the identification number assigned to the print job in the printer queue.
When <4>/hold uses job#, the print job waits in the printer queue.
<5>/release releases a reserved print job.
<6>/delete Delete a print job from the printer queue.
Simple example:?
<1>net Print//yfang/seeme lists the directories of SeeMe printer queues on the//yfang computer?

(14) Net Name?
Role: Add or remove a message name (sometimes called an alias), or display a list of names that the computer receives messages from??
Command format: NET name [/add |/delete]]?
Parameter introduction:?
<1> Type the name that is currently in use with net name with no parameters.
&LT;2&GT;NAME Specifies the name of the receiving message.?
<3>/add Add the name to the computer.?
<4>/delete remove the name from the computer.?

(15) Net localgroup?
Role: Add, show, or change local groups.
Command format: net localgroup groupname {/add [/comment: "Text"] | /delete}? [/domain]?
Parameter introduction:?
<1> Type a net localgroup with no parameters to display the server name and the local group name of the computer.
<2>groupname the name of the local group to add, expand, or delete.
<3>/comment: "Text" adds a comment to a new or existing group.?
<4>/domain performs operations on the primary domain controller of the current domain, otherwise the action is performed only on the local computer???
<5>name [...] list one or more user or group names to add to or remove from local groups??
<6>/add adds a global group name or user name to the local group.
<7>/delete Remove the group name or user name from the local group.
Simple example:?
<1>net localgroup love/add Add a local group named love to the local user account database?
<2>net localgroup Love show Love the users in the local group?

(16) Net Group?
Role: Add, display, or change global groups in a Windows NT Server domain.?
Command format: NET group groupname {/add [/comment: "Text"] | /delete}?
Parameter introduction:?
<1> Type a net group with no parameters to display the server name and the server's group name.
<2>groupname the group you want to add, expand, or delete.
<3>/comment: "Text" adds a comment to a new or existing group. <4>/domain the primary domain control in the current domain?

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.