Windows command: NET use details

xiaoxiao2021-03-06  35

[Repost] Windows command: NET use details

Windows command: NET use details

The parameters of the network command line in Windows are much more complicated. Of course, their functions are also very powerful. Under certain occasions (if invaded to a server ^ _ ^), it is really no such command tool, what Don't do things, so some servers now limit the use of these commands after accessing the Internet. Here we will teach you through a series of articles to fully understand and learn to use these commands. This article allows reprint, but please absolutely maintain the original place for the article for School.net.com.cn Silicon Valley Power Technology and the author's name.

Suggestion: Everyone is reading this article, opens the Windows command line window, one by one, and the effect of it can receive a half-time. If you do these operations on your own computer, some operations require administrator-level privileges, and it is possible to change the important configuration of the system and lead to system people. So please recommend backup system before doing these operations,! Of course, I will also indicate in the operation of change the important parameters of the system!

Command Name: Net

The NET command has a very powerful feature that manages most of the management level operations and user-level operations of the computer, including managing local and remote user group databases, managing shared resources, managing local services, and network configuration.

Description: All net commands accept / yes and / no option (you can abbreviate to / y and / n). The / y option automatically answers "Yes" to any interactive prompt generated by the command, and / n answers "No". For example, NET STOP Server usually prompts you to confirm that you want to stop all services based on Server services; Net Stop Server / Y automatically answers the prompt "Yes", then "Server" service is turned off.

The usage and specific examples of its additional parameters will be described in detail below.

1. Net view

Description: This command can display domain lists and computer lists in the current network, and you can also display shared resource status on a computer you specify.

Operation: Net View

Displays a list of computers in the current domain or workgroup.

Operation: Net View // Lixuhai

Displays all shared resources on the machine named Lixuhai under the specified current domain or workgroup.

Action: Net View // Lixuhai / Cache

Enable offline cache Display all shared resources on machines named Lixuhai under the specified current domain or workgroup

Action: Net View / Domain

Displays the domains available in the current network.

Action: Net View /Domain :net.com.cn

View the Domain Name as the ENET.com.cn domain details.

Operation: Net View / Network

Display all available servers in the network.

2. Net Accounts

Description: Upgrade the user account database and modify the password and login request for all accounts. This operation is done on a computer that needs to change the user account parameter.

Operation: Net Accounts

View the current login account information.

Operation: NET Accounts / MINPWDLEN: 3

Setting the user's password length is not less than 3 characters.

Action: Net Accounts / FOCELOGOFF: 2

Settings When the user account or valid login time expires, the number of minutes to wait before the user is to the server, which is set to 2 minutes. In addition, add / no parameters, prevent the server from mandatory logout for the machine.

* If you log in, the setting will affect the login.

Action: NET Accounts / MINPWAGE: 20

Setting the minimum number of days before the user can change the new password. Value 0 Sets unlimited short time. The range is 0-49,710 days, the default is 0 days, and it is set for 20 days. Action: Net Accounts / MaxPwage: 30

Set the maximum number of user account password valid days. Numerical Unlimited Sets Unlimited long time. The / MaxPwage option must be greater than / minpwage. The range is 1-49,710 days ("unlimited"), the default is 90 days, and it is 30 days here.

Action: Net Accounts / UniquePW: 10

Requires the user not to change the same password in a few widgets. The range is 0-24 times password change, the default value is 5 password changes, which is set 10 times.

Action: Net Accounts / Domain

Perform actions on the primary domain controller of the current domain. Otherwise, the operation is performed on the local computer.

This parameter applies only to Windows 2000 Professional Computers that belong to WINDOWS 2000 Server domain. By default, Windows 2000 Server computers perform operations on the primary domain controller.

Action: NET Accounts / Sync

When used on the primary domain controller, all backup domain controllers in the domain are synchronized. When used on the backup domain controller, the backup domain controller is only synchronized with the main domain controller. This command is only available for Windows 2000 Server domain member computers.

3. Net Computer

Description: Add or delete your computer from the domain database. This command can only be available on a computer running Windows 2000 Server.

Action: Net Computer // Lixuhai / Add

Add the computer named LiXuhai to the current domain.

Operation: Net Computer // Lixuhai / DEL

Remove the computer named Lixuhai from the current domain.

4. NET Config

Description: Displays the configurable service that is running, or displays and changes the service settings.

Operation: Net config

Display the configurable service running.

Operation: NET Config XXX

Specifies the service configured with the NET Config command ("Server" or "Workstation"), here is assumed to be XXX.

5. NET PAUSE

Description: Pause the service in the run. Including file service for macintosh (limited to Windows 2000 servers), ftp publishing service, lpdsvc, net logon, network dde, network dde dsdm, nt lm security support provider, remote access server, schedule, server, simple tcp / ip services and workstation .

Operation: Net Pasuse Server

Pause the Server service being running.

6. Net Continue

Description: Reactivate the suspended service. Can continue services are: file server for macintosh (only Windows 2000 Server), ftp publishing service, lpdsvc, net logon, network dde, network dde dsdm, nt lm security support provider, remote access server, schedule, server, simple tcp / IP Services and Workstation.

Operation: Net Continue Server continues to run a SERVER service that has been paused or stop.

7. NET Config Server

Description: Display or change the settings of the Server service when the service is run.

Operation: Net Config Server

Command Displays the current configuration of the Server service

Operation: NET Config Server / Autodisconnect: 60

Set the maximum number of minutes that the user session can be inactive before disconnection. You can specify -1 to open up. The default value is 15 minutes from -1 to 65535 minutes, and it is set to 60 minutes.

Action: NET Config Server / SRVComment: "Notes"

Add server comments that appear when viewing server properties for the server. You can contain up to 48 characters, remember to add quotes to text.

Operation: Net Config Server / Hidden: YES

Specifies whether the server name is displayed in the server list. Note that hidden servers will change the permissions on the server. Two parameters, one is YES, the other is NO, the default setting is NO.

8. NET Config Workstation

Display or change the settings of the Workstation service when the service is run.

Action: NET Config Workstation

A configuration of the local computer is displayed.

Operation: NET Config Workstation / Charge: bytes

Specifies the amount of data collected by Windows 2000 before sending data to the communication device. If / chartime: msec is also set, Windows 2000 will perform the first satisfaction option. The range from 0 to -65535 bytes, the default is 16 bytes.

Operation: NET Config Workstation / Chartime: MSEC

Setting Windows 2000 to collect data for milliseconds of data before sending data to the communication device. If it is also set / charcount: bytes, Windows 2000 will perform the first satisfying option. The default is 250 milliseconds from 0 to 65535000 milliseconds.

Operation: NET Config Workstation / Charwait: Sec

Setting the number of seconds of Windows 2000 waiting for the communication device to be available. The range from 0 to 65535 seconds, the default value is 3600 seconds.

9.net file

Description: Display all open shared file names on the server and file lock code for each file (if any). This command also closes a separate shared file and delete file locks.

Action: Net file

Display a list of files opened on the server.

Operation: Net file 5

Specify the file attribute of the identification number 5.

Operation: Net file / close

Turn off the open file and release the lock record. Type this command by a server of shared files.

10.NET Group with Net localgroup

NOTE: NET Group is added, displayed or modified in Windows 2000 Server's domain. This command is only available on the Windows 2000 Server domain controller. Net localgroup is used locally, and if the / domain parameter is added, operate on the main domain. The use of these two commands is basically consistent, which is explained here.

Action: Net Group

Displays the name of the server name and the server on the server.

Operation: Net Group ENET

Check all the computers in the current domain named ENET.

Action: NET Group ENET / Comment: "Notes"

Add a comment for the ENET group in the current network, which can add comments for new or existing groups.

Operation: NET Group Home / Add adds a new group named HOME in the current domain.

Operation: Net Group Home / Delete

Delete the group named HOME in the current domain, pay attention to all users under the current group will also cancel in this group.

Operation: Net Group ENET LiXuhai LiXuhai1 / Add

Add a computer named Lixuhai and LiXuhai1 to the ENET workgroup in the current domain. The computer name here can specify one to multiple, easy to operate.

Operation: Net Group ENET LiXuhai LiXuhai1 / Delte

Remove the computer named Lixuhai and Lixuhai1 from the ENET workgroup. The computer name here can specify one to multiple, easy to operate.

11.Net Name

NOTE: Add or delete the message name, or display the computer to accept the message name list.

Action: Net name

Displays a list of messages used by this unit.

Action: Net Name ABC / Add

Add a message name to ABC to this unit accept the message name list.

Action: Net Name ABC / DEL

Delete the ABC list name existing in this list.

12. Net Print

Description: Display and control the printer queue and the ongoing print task.

Net Print Jobnum / Hold

Keep the print job being printed on the column and the workload is Jobnum, and other print jobs will ignore it until it is released.

Net Print Jobnum / Release

Release the print task that retains the specified work number.

Net Print Jobnum / Delte

Remove the print task of the specified work number from the print queue.

13.Net Send

Send a message to the user, computer or message name, and the other party must run the messenger service. However, the service was abused by a illegal advertiser before, and the advertisement information was sent to a large number of users on the network, so the system in the current system made many prohibited use, and the message may not be received. Enabling this service only needs to type NET STRART MSG.

Operation: Net Send LiXuhai ABC

Send the information "ABC" to the target username, the computer name or message name is Lixuhai. If the name is a computer name containing blank characters, use quotation marks ("").

Operation: NET SNED * ABC

Send the information "ABC" to all the computers in the current domain or working group. If you add a / users parameter, you are sent to all users connected to the server.

14. Net session

Description: Lists or disconnect the session connection between the local computer and the client connected to it.

Action: NET session

Display all session connections to the network connection with the local computer.

Operation: Net session // lixuhai1

The computer named Lixuhai1 is connected to the session that is ongoing in this unit.

Operation: Net session // lixuhai1 / delte

End the computer named Lixuhai1 and all session connections that are made by this machine and close all files that are opened by the machine.

Operation: Net session / delte

End all computers with the session connection to this machine and close all files that are opened by the network user.

15. Net Share

Description: Manage shared resources.

Operation: Net Share

Displays all currently all shared resources.

Action: NET Share Movie

Display this machine sharing sharing details of MOVIE. Including the name, path, user limit, annotation, specified user, etc.

Operation: Net Share Movie / Delte

Delete shared resources named Movie.

Operation: NET Share Movie = D: / Movie / User: 10

Establish a shared name of the shared name to Movie, specify the shared path to D: / Movie, and the maximum number of connected users is 10. Operation: NET Share Movie = D: / Movie / Unlimited / Remark: "Shared Notes"

Establish a shared name of the Sharing name, specify the shared path to D: / Movie, unlimited user connection number, plus comments as "shared comments" .. (Text: Silicon Valley Power - Li Xuhai)

转载请注明原文地址:https://www.9cbs.com/read-61767.html

New Post(0)