This article integrates the three operating systems of Windows 98, Windows Workstation and Windows Server about net commands. I believe that everyone will help.
(1) The NET command is a command line command.
(2) Management network environment, service, users, landing ... and other local information
(3) WIN 98, WIN WORKSTATION AND WIN NT has a NET command.
(4) However, the net command of Win 98 is different from the net command of WorkStation, NT.
(5) The net command in WorkStation and Server is basically the same.
(6) Get HELP
A. In the way, the order, the order is: Start - "Help -" Index - "Enter Net
B. Some methods can be obtained by characters, NET /? Or NET or NET HELP under Command. Help NET for the corresponding method
COMMAND / HELP or NET HELP Command or Net Command /? Another error NET Helpmsg
Message # is 4 digits
(7) Forced parameters
All net commands accept options / yes and / no (abbreviated as / y and / n).
(8) There are some commands that work immediately and permanently, should be cautious when using it.
(9) The corresponding graphics tool can be found for the function of the net command.
(10) The composition of the command
Command Parameter Options | Parameter Options | Parameter Options | ......
There are two points:
(1) There are some parameters in the NT command to use only in the Server environment.
(2) There are some parameters in the win98 NET command that cannot be used in the DOS-WIN and can only be used in the DOS environment. Below the NET command
Basic use of different parameters do some preliminary introductions:
A: NET VIEW
Role: Display domain list, computer list, or a list of shared resources for specified computers.
Command format: Net View [// computername | / domain [: domainname]]]
Parameter introduction: (1) Type NET View to display the list of computers of the current domain.
(2) // computername Specifies the computer to view its shared resource.
(3) / domain [: domainname] Specifies to view the domain of its available computer.
Simple case: (1) Net View // Yfang View Yfang shared resource list.
(2) NET View / Domain: Love View the list of machines in the LOVE domain.
B: Net User
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 without parameters to view a list of user accounts on your computer.
(2) UserName Add, delete, change, or view the user account name.
(3) Password assigns or change the password for the user account.
(4) * Tip Enter the password.
(5) / Domain executes the operation in the main domain controller of the computer main domain.
Simple case: Net user yfang View User Yfang Information
(C) NET USE
Role: Connect the computer or disconnect the computer and the shared resource connection, or display the connection information of your computer.
Command format: Net Use [DeviceName | *] [// computername / sharename [/ volume]]
[Password | *]] [/ user: [domainname /] username] [[/ delete] |
[/ persistent: {yes | no}]]
Parameter introduction: (1) Type NET USE to list the network connection.
(2) DeviceName Specifies the name of the resource to be connected or the device name to be disconnected.
(3) // COMPUTERNAME / ShaName server and the name of the shared resource. (4) Password Access the password for shared resources.
(5) * Tips to type the password.
(6) / User specifies another user that is connected.
(7) DomainName Specifies another domain.
(8) Username Specifies the username of the login.
(9) / Home Connect the user to its host directory.
(10) / delete Cancels the specified network connection.
(11) / Persistent controls the use of permanent network connections.
Simple case: (1) NET USE E: // Yfang / TEMP will be established to e disk in // yfang / temp
(2) NET USE E: // Yfang / TEMP / DELETE Disconnect Connection
(D) NET TIME
Role: Synchronize the computer's clock to another computer or domain.
Command format: Net time [// computername | / domain [: name]] [/ set]
Parameter introduction: (1) // ComputerName To check or synchronize the server name.
(2) / domain [: name] Specifies the domain to synchronize with its time.
(3) / SET Synchronize the computer clock with the clock specified by the specified computer or domain.
(E) NET START
Role: Start the service, or display a list of start-up services.
Command format: Net Start Service
(F) NET PAUSE
Role: Pause the service running.
Command format: Net Pause Service
(G) Net Continue
Role: Reactivate the hang service.
Command format: Net Continue Service
(H) NET STOP
Role: Stop Windows NT Network Services.
Command format: NET STOP Service
Parameter introduction: (1) ALERTER (Alert)
(2) Client Service for NetWare (NetWare Client Service)
(3) Clipbook Server (Scrapbook Server)
(4) Computer Browser (computer browser)
(5) Directory Replicator (directory replicator)
(6) FTP Publishing Service (FTP) (FTP Release Service)
(7) LPDSVC
(8) NET LOGON (network login)
(9) NetWork DDE (Network DDE)
(10) NetWork DDE DSDM (Network DDE DSDM)
(11) Network Monitor Agent (Network Monitoring Agent)
(12) NT LM Security Support Provider (NT LM Security Support)
(13) OLE (Object Links and Embedded)
(14) Remote Access Connection Manager (Remote Access Connection Manager)
(15) Remote Access Isnsap Service (Remote Access ISNSAP Service)
(16) Remote Access Server (Remote Access Server)
(17) Remote Procedure Call (RPC) Locator (Remote Process Call Locator)
(18) Remote Procedure Call (RPC) Service (Remote Process Call Service)
(19) Schedule (scheduling)
(20) SERVER (server)
(21) SIMPLE TCP / IP Services (simple TCP / IP service)
(22) SNMP
(23) Spooler (background print program)
(24) TCP / IP NetBIOS Helper (TCP / IP NetBIOS Aid) (25) UPS
(26) WorkStation (Workstation)
(27) Messenger (letter)
(28) DHCP Client
(29) Eventlog
These services 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
(I) Net Statistics
Role: Displays statistical records for local workstations or server services.
Command format: Net Statistics [Workstation | Server]
Parameter introduction: (1) Type NET Statistics that does not have parameters lists the running services available for their statistics.
(2) WorkStation Displays statistics for local workstation services.
(3) Server displays statistics for local server services.
Simple case: Net Statistics Server | More Display Server Services
(J) NET Share
Role: Create, delete, or display shared resources.
Command format: Net Share ShareName = Drive: path [/ users: Number | / unlimited]
[/ Remark: "text"]
Parameter introduction: (1) Type NET Share without parameters Displays information on all shared resources on the local computer.
(2) ShareName is the network name of shared resources.
(3) DRIVE: PATH Specifies the absolute path to the shared directory.
(4) / Users: Number settings can access the maximum number of users for shared resources at the same time.
(5) / unlimited does not limit the number of users who simultaneously access the shared resource.
(6 / Remark: "text" Adds a comment on resources, and the text is taken by quotation marks.
Simple case: (1) NET Share mylove = C: / Temp / Remark: "My First Share" with myLove as a shared name
Enjoy C: / Temp
(2) NET Share MYLOVE / DELETE Stop Sharing MYLOVE Directory
(K) Net session
Role: List or disconnect the local computer and the session of the client connected to it, or write to NET sessions or Net
SESS.
Command format: Net session [// computename] [/ delete]
Parameter introduction: (1) Type NET session without parameters Show all sessions of the local computer.
(2) // COMPUTERNAME identifies the computer to list or discontinue the session.
(3) / Delete ends with // computername computing opportunities and closing this session.
Simple case: NET session // Yfang To display a list of client session information called YFANG.
(L) Net Send
Role: Send a message to other users of the network, computer, or communication name.
Command format: Net send {name | * | / domain [: name] | / users} message
Parameter introduction: (1) Name To receive username, computer name, or communication name of sending messages.
(2) * Send messages to all names in the group.
(3) / Domain [: Name] sends the message to all the names in the computer domain.
(4) / Users sends the message to all users connected to the server.
(5) Message is sent as a message.
Simple case: net send / users server will shutdown in 5 minutes. Give all users connected to the server message
(M) Net Print
Role: Display or control the print job and print queue.
Command format: Net print [// computename] Job # [/ hold | / release | / delete]
Parameter introduction: (1) ComputerName Sharing the computer name of the printer queue.
(2) ShareName print queue name.
(3) JOB # Assign the identification number of the print job in the printer queue.
(4) / Hold Use Job #, wait in the printer queue to wait.
(5) / Release releases the reserved print job.
(6 / DELETE removes the print job from the printer queue.
Simple case: Net print // yfang / seeme lists the directory of the SEEME printer queue on the // yfang computer
(N) Net Name
Role: Add or delete a message name (sometimes known as alias), or display the name list of the computer to receive the message.
Command format: Net name [name [/ add | / delete]]]
Parameter introduction: (1) Type Net Name without parameters lists the names currently used.
(2) Name Specifies the name of the received message.
(3) / add Add the name to your computer.
(4) / Delete removes the name from the computer.
(O) NET localgroup
Role: Add, display, or change the local group.
Command format: Net localgroup groupname {/ add [/ comment: "text"] | / delete}
[/ domain]
Parameter introduction: (1) Type NET localgroup display server name and computer's local group name.
(2) Groupname To add, expand or delete local group names.
(3) / Comment: "text" Add a comment for the new or existing group.
(4) / Domain executes operations in the current domain's primary domain controller, otherwise doing only on the local computer?
(5) Name [...] lists one or more usernames or groups to be added to the local group or from the local group
name.
(6) / add Add the global group name or username to the local group.
(7) / Delete removes a group name or username from the local group.
Simple case: (1) Net localgroup love / add Add local group named LOVE to a local user account database
(2) NET localgroup love Shows users in local groups
(P) NET Group
Role: 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 NET Group Display Server Name and Server Group Name.
(2) Groupname To add, extend, or delete groups.
(3) / Comment: "text" Adds a comment for the new group or existing group.
(4) / Domain executes this operation in the primary domain controller of the current domain, otherwise perform operations on the local computer
(5) UserName [...] list Displays one or more users to be added to groups or from the group.
(6) / add group or add the username in the group.
(7) / delete delete group or deletes the username from the group.
Simple case: net group love yfang1 yfang2 / add Add existing user account Yfang1 and Yfang2 to the local
Computer LOVE group
(Q) net file
Role: Displays all open shared file names and lock files on a server.
Command format: Net file [id [/ close]] Parameter introduction: (1) Type NET File without parameters to open a list of files on the server.
(2) ID file identification number.
(3) / Close Close the open file and release the lock record.
(R) NET Config
Role: Displays the currently runable configurable service, or display and change the settings for a service.
Command format: Net config [service [options]]
Parameter introduction: (1) Type NET Config displays the list of configurable services.
(2) Service is configured by the Net Config command (Server or Workstation)
(3) A specific option for the Options service.
(S) NET Computer
Role: Add or delete a computer from a domain database.
Command format: Net computer // computername {/ add | / del}
Parameter introduction: (1) // computername Specifies the computer to be added to the domain or from the domain.
(2) / add Tim the specified computer to the domain.
(3) / DEL will delete the specified computer from the domain.
Simple case: (1) Net computer // cc / add Add computer CC to login domain
(T) NET Accounts
Role: Update the user account database, change the login requirements of all accounts and all accounts.
Command format: Net Accounts [/ forcelogoff: {minutes | no}] [/ minpwlen: length]
[/ MaxPwage: {days | unlimited}] [/ minpwage: days] [/ uniquePW: Number]
[/ domain]
Parameter introduction: (1) Type NET Accounts without parameters Display the current password setting, login time limit, and domain information.
(2) / forcelogoff: {minutes | no} Setting When a user account or a valid login time expires
(3) / MINPWLEN: LENGTH Set the number of user account passwords.
(4) / maxpwage: {days | unlimited} Set the maximum number of days that the user account password is valid.
(5) / MINPWAGE: DAYS Setting the user must keep the minimum number of days.
(6) / UniquePW: Number requires the user to change the password, must be reused after Number
The same password as the same.
(7) / Domain executes this operation on the main domain controller of the current domain.
(8) / SYNC When used for the primary domain controller, this command synchronizes all backup domain controllers in the domain.
Simple case: NET Accounts / MINPWLEN: 7 sets the maximum number of user account passwords to 7
The above introduction is the basic usage of the NET command in WinNT. Let's introduce the basic usage of net commands under Win98.
There are also some parameters in the NET command in Win98.
There are some names and functions of parameters and the simple usage methods and the usage of the corresponding parameters under WinNT:
(1) NET TIME command
(2) Net print command
(3) NET USE command
(4) NET View command
Some of these parameters and the same name of the corresponding parameters under Winnt, but their usage is different:
(1) NET START
Role: 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
Role: Stop the corresponding service. (Can't use in DOS-WIN)
Command format: Net Stop [Basic | NWREDIR | WORKSTATION | NETBEUI | NWLINK] [/ YES]
There are still some parameters in the NET command in Win98. They are: (1) NET DIAG
Role: Diagnostics program running MS display network Diagnostic information
Command format: Net Diagnostics [/ names | / status]
(2) NET INIT
Role: Do not load protocol or network card driver by binding (cannot be used in DOS-WIN)
Command format: Net Initialize [/ Dynamic]
(3) NET logoff
Role: Disconnect the shared resource (cannot be used in DOS-WIN)
(4) NET logon
Role: Log in in Workgroup (cannot be used in DOS-WIN)
Command format: net logon [user [password |?]] [/ Domain: name] [/ yes] [/ savepw: NO]
(5) Net Password
Role: Change your network login password (cannot be used in DOS-WIN)
Command format: Net password // computer | / domain: Name [user [oldpassword
[newpassword]]]]]