Net command usage

Source: Internet
Author: User
Tags net command net time domain list net send

 
This article describes how to explain the net commands in Windows 98, Windows workstation, and Windows Server.

(1) The net command is a command line command.

(2) manage network environments, 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

A. In NT, you can use graphs in the order of "start-" Help-"index-" input net ".

B. The command can use the character format. Net /? Or net or net help to get some methods. Corresponding Method help net

Command/help or net HELP command or net command /? For the error net helpmsg

Message #4-digit

(7) mandatory parameters

All net commands accept options/Yes and/NO (abbreviated as/y and/N ).

(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) Composition of commands

Command Parameter options | ......

There are two more points:

(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. Net commands

The following describes the basic usage of different parameters:

 

A: Net View

Purpose: display the domain list, computer list, or shared resource list of the specified computer.

Command Format: Net view [// computername |/domain [: domainname]

Parameter description: (1) enter a net view without parameters to display the computer list of the current domain.

(2) // computername specifies the computer to view its shared resources.

(3)/domain [: domainname] specifies the domain for which you want to view the available computers.

Simple Example: (1) Net view // yfang to view the list of shared resources of yfang.

(2) Net view/domain: Love: view the machine list in the love domain.

 

B: Net user

Purpose: 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 description: (1) enter a net user without parameters to view the user account list on the computer.

(2) add, delete, change, or view the user account name.

(3) password: assign or change the password for the user account.

(4) * The system prompts you to enter the password.

(5)/domain: perform operations in the master domain controller of the computer's primary domain.

Simple Example: Net user yfang to view User yfang Information

 

(C) 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 description: (1) type "net use" without parameters to list network connections.

(2) devicename specifies the name of the resource to be connected or the name of the device to be disconnected.

(3) // computername/sharename server and shared resource name.

(4) password used to access shared resources.

(5) * enter the password.

(6)/User specifies another user to connect.

(7) domainname specifies another domain.

(8) username specifies the user name for logon.

(9)/home connects the user to its home directory.

(10)/delete cancels the specified network connection.

(11)/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 disconnect

 

(D) Net time

Function: Synchronize the clock of a computer with that of another computer or domain.

Command Format: Net time [// computername |/domain [: Name] [/set]

Parameter description: (1) // The name of the server to be checked or synchronized by computername.

(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.

 

(E) Net start

Purpose: start the service or display the list of started services.

Command Format: Net start service

 

(F) Net pause

Purpose: Pause a running service.

Command Format: Net pause Service

 

(G) Net continue

Purpose: reactivate the suspended service.

Command Format: Net continue service

 

(H) net stop

Purpose: Stop the Windows NT network service.

Command Format: net stop service

Parameter Introduction: (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 DDE)

(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 (scheduling)

(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)

(27) Messenger)

(28) DHCP Client

(29) EventLog

The following services can only be used on the 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

 

(I) Net statistics

Purpose: display the statistical records of local workstations or server services.

Command Format: Net statistics [workstation | Server]

Parameter description: (1) type "net Statistics" without parameters to list available running services.

(2) workstation displays the statistics of local workstation services.

(3) The server displays statistics of local server services.

Simple Example: Net statistics server | more displays statistics of server services

 

(J) net share

Purpose: Create, delete, or display shared resources.

Command Format: net share sharename = drive: path [/users: Number |/unlimited]

[/Remark: "text"]

Parameter description: (1) type "net share" without parameters to display information about all the 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" shared by mylove

C:/temp

(2) net share mylove/delete stop sharing the mylove directory

 

(K) Net session

Purpose: list or disconnect the Sessions of the Local Computer and the client to which it is connected. It can also be written as net sessions or net.

Sess.

Command Format: Net session [// computername] [/delete]

Parameter description: (1) Type A net session without parameters to display information about all sessions with the local computer.

(2) // computername indicates the computer to list or disconnect sessions.

(3)/delete ends the session with the computer // computername and closes the session.

Simple Example: Net session // yfang displays the list of client sessions with the computer name yfang.

 

(L) net send

Purpose: send messages to other users, computers, or communication names on the network.

Command Format: net send {name | * |/domain [: Name] |/users} message

Parameter description: (1) Name: User Name, computer name, or communication name of the message to be sent.

(2) * send messages to all group names.

(3)/domain [: Name] sends the 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: net send/users server will shutdown in 5 minutes.

User to send messages

 

(M) Net print

Purpose: display or control print jobs and print queues.

Command Format: Net print [// computername] job # [/hold |/release |/delete]

Parameter description: (1) computername: name of the computer that shares the printer queue.

(2) The sharename prints the queue name.

(3) job # ID assigned to the print job in the printer queue.

(4) When/hold uses job #, wait for the print job in the printer queue.

(5)/release the reserved print job.

(6/delete: delete a print job from the printer queue.

Simple Example: Net print // yfang/seeme list // directory of the seeme printer queue on the yfang computer

 

(N) Net Name

Purpose: add or delete a message name (also known as an alias) or display the name list of received messages on the computer.

Command Format: Net name [name [/Add |/delete]

Parameter description: (1) enter a net name without a parameter 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.

 

(O) Net localgroup

Purpose: add, display, or change a local group.

Command Format: Net localgroup groupname {/Add [/comment: "text"] |/delete}

[/Domain]

Parameter description: (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" to add comments for 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 groups to be added to or deleted from a local group.

Name.

(6)/Add add the global group name or user name to the local group.

(7)/delete Delete 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 shows users in the local group of love

 

(P) net group

Purpose: add, display, or change global groups in the Windows NT Server domain.

Command Format: net group groupname {/Add [/comment: "text"] |/delete} [/domain]

Parameter description: (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: this operation is performed on the master domain controller of the current domain. Otherwise, the operation is performed on the local computer.

(5) The username [...] List displays one or more users to be added to or deleted from the group.

(6) 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: net group love yfang1 yfang2/Add existing user accounts yfang1 and yfang2 to local

Computer Love Group

 

(Q) Net File

Purpose: display the shared file names opened on a server and the number of locked files.

Command Format: Net file [ID [/close]

Parameter description: (1) enter 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.

 

(R) Net config

Purpose: display the currently running configurable service, or display and change the settings of a service.

Command Format: Net config [Service [Options]

Parameter description: (1) type "net config" without parameters to display the list of configurable services.

(2) services configured using the net config command (server or workstation)

(3) specific options of the options service.

 

(S) net computer

Purpose: add or delete a computer from a domain database.

Command Format: net computer // computername {/Add |/del}

Parameter description: (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

 

(T) Net accounts

Purpose: update the user account database, change the password, and logon requirements for all accounts.

Command Format: Net accounts [/forcelogoff: {minutes | no}] [/minpwlen: length]

[/Maxpwage: {days | unlimited}] [/minpwage: days] [/uniquepw: Number]

[/Domain]

Parameter description: (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)/minpwage: specifies the minimum number of days that the user must keep the original password.

(6)/uniquepw: Number requires the user to change the password, it must be number before repeated use

The same password.

(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 synchronizes all the backup domain controllers in the domain

Simple Example: Net accounts/minpwlen: 7. Set the minimum number of characters in the user account and password to 7.

The above describes the basic usage of the net command in winnt. Next we will introduce the basic usage of the net command in Win98.

In Win98, the net command also has some parameters.

The names and functions of some parameters and simple usage methods are the same as those of the corresponding parameters in winnt:

(1) Net time command

(2) Net print command

(3) net use command

(4) Net view command

The names of some parameters are the same as those of the corresponding parameters in WINNT, but their usage is somewhat different:

(1) Net start

Purpose: Start the corresponding service. (Cannot be used in DOS-Win)

Command Format: Net start [basic | nwredir | workstation | netbind | netbeui

| Nwlink]
[/Yes] [/verbose]

(2) net stop

Purpose: 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 under 98. They are:

(1) Net diag

Purpose: run the MS diagnostics program to display the diagnostic information of the network.

Command Format: Net diagnostics [/names |/status]

(2) Net init

Purpose: do not bind the Protocol or NIC Driver (cannot be used in DOS-Win)

Command Format: Net initialize [/dynamic]

(3) Net Logoff

Purpose: disconnect shared resources (cannot be used in DOS-Win)

(4) Net Logon

Role: log on to Workgroup (not in DOS-Win)

Command Format: Net Logon [user [Password |?] [/Domain: Name] [/Yes] [/savepw: No]

(5) Net Password

Purpose: 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: info-contact@alibabacloud.com 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.