Necessary network doscommand instance for Network Management

Source: Internet
Author: User
Tags net send

Nowadays, DOS has become a thing of the antique class and has been completely abandoned by the Windows operating system. The existence of real-mode DoS cannot be found in the latest Win2000/XP, instead of the command line mode. Is dos useless at all? Do I have to understand the doscommand? In fact, many command line commands are provided in the 98/2000/XP system. These commands are very similar to those in DOS. If we use these commands well, we can get twice the result with half the effort in our work. Today we are going to let you know more about network doscommands through several examples used in practical work, and their advanced usage methods.

 Example 1: Use Net send to create a free paging Function

Task Description:

There is only one phone number in the Organization and many extensions are used. When a call is made, it is very troublesome to contact someone else and call someone in the corresponding office. Of course, you can call QQ, however, not everyone has applied for QQ and is always online. In this case, we can use the netsend command and the Messenger Service to create a free paging platform. Assume 10.91.30.45 is the master room. Of course, the director doesn't just answer the phone. This kind of work can only be done by our staff. When we call the director, we passNetworkSend a message to the director's computer, which eliminates the need to call people and enables free paging.

Applicable systems:2000/XP/2003

Implementation Method:

Step 1:First, start the Messenger Service on the Director's computer. Choose Start> RUN> enter services. MSC to go to the Service Management page.

Step 2:Find the Messenger Service in the service, double-click the service window, and click "start" to enable the Service.

Step 3:Start the Messenger Service on my computer in the same way as starting the Director computer.

Step 4:If you have a call to the supervisor, you only need to enter "net send 10.91.30.45 "in command line mode (without quotation marks. At this time, the Director will receive a message from you on the computer.

TIPS:

When you enter "net send * 2 o'clock meeting" (without quotation marks), the local machine will send this messenger message to all computers in the entire domain, each computer in the domain receives a message for a meeting ".

In addition, if you want to send a messenger message to someone, you can create a batch processing file on the desktop and add the corresponding sending commands to the BAT file, when you want to send a message, you only need to double-click the file to complete the task of sending the message, which is more convenient.

 
 

Instance 2: Use the netsh command to import, export, and quickly modify network settings.

Task Description:

It is very troublesome to view or modify network settings every time, especially when you give guidance to mm on QQ, it is often because you have explained it for half a day and she is on the cloud. Is there a more convenient way to save the network settings to a file at a time, or to modify the network parameters by editing a file and then importing the file with commands? In fact, we can fully implement netsh using the network doscommand.

Applicable systems:2000/XP/2003

Implementation process:

Step 1:Export the network settings of the local machine to a TXT file. To save the current network settings to C, enter "netsh-C interface dump> C:/web1.txt" (without quotation marks) in command line mode: /web1.txt file.

Step 2:Open C:/web1.txt and you will see the saved network parameters. The data is comprehensive. (4) we can use this command to allow mm to save network parameters to a TXT file, and then send the file to you, in this way, you will be able to take charge of her network configuration and solve the fault more easily.

Step 3:Setting network parameters is also very simple. You only need to edit the C:/web1.txt file according to the desired parameters, and then enter netsh-f c:/web1.txt in command line mode, you can save the network parameter information of the file to the local machine to implement quick changes to network settings. This method is very suitable for sending the edited file back to mm and enabling it to set new network parameters through the network DOS command.

 

Instance 3: Use the netsh command to modify multiple information such as IP address, subnet mask, and gateway address.

Task Description:

Modifying IP addresses, subnet masks, Gateway addresses, and other network parameters is a headache. It usually takes many steps to complete. In fact, we can use netsh of the network doscommand to modify IP addresses, subnet masks, Gateway addresses, and other information in command line mode.

Applicable systems:2000/XP/2003

Implementation Method:

Step 1:Enter "netsh" in command line mode to enter network configuration mode.

Step 2:Enter "interface" to enter the interface setting mode, and then enter the IP address to enter the IP Address Setting Mode. At this time, the path before the prompt is displayed as "interface IP> ".

Step 3:Enter "add address" Local Area Connection "10.0.0.2 255.0.0.0" at the interface IP> prompt to change the IP address of the Local Computer to 10.0.0.2 and the subnet mask to 255.0.0.0. It is worth noting that the local area connection is the name of the local connection. In actual applications, you can replace "Local Area Connection" with the real name of the network connection.

TIPS:

How can I find the real network connection name? We need to go to the remote computer and view it through "start-> Settings-> network and dial-up connection, in practice, if the name of the local connection is Chinese, note that there is a space between "local connection 1". This space cannot be missing during input.

Step 4:Enter "add address" Local Area Connection "Gateway = 10.0.0.3 gwmetric = 1" at the interface IP> prompt to modify the gateway address of the remote computer to 10.0.0.3, the gwmetric value can be set to 1 for common ADSL users. If it is a company LAN user, this value indicates the number of hops that remote computers reach the gateway. You can ask the network administrator to obtain the value.

 

Instance 4: simplified user addition, deletion, and management

Task Description:

As we all know, generally, to add or delete users or to manage user permissions, we need to go to the control panel> Administrative Tools> local users and groups in Computer Management, and then set them, which is complicated and troublesome. In fact, we can also use the net user of the network doscommand to implement this work.

Applicable systems:2000/XP/2003

Implementation Method:

First enter the command line mode, and then enter the 54master personal space/B xeg MV 's8he
Net user softer 123/Add add a user named softer with a password of 123
].? Rvq # P; s4dguest net user softer 123456 change softer user password to 12345654master personal space 5Q. g8z, spg3mc7 _ 'J
Net localgroup administrators softer/Add add softer users to the Administrators group

TIPS:

For more usage, enter the net user in command line mode? Such as deleting a user or deleting a user group.

 

Instance 5: Quickly query the persons attacked by me

Task Description:

As long as I am exposed to the Internet, there will be people who attack me. How can I view the users who connect to my computer and access my files? This problem occurs not only for LAN users, but also for ADSL users and Great Wall broadband users. Only users who have been connected to my computer at any time can effectively prevent black spots. Of course, the network doscommand can also implement this function.

Applicable systems:2000/XP/2003

Implementation Method:

If you enter the net session in command line mode, the current network session will be displayed. users or computers accessing your files will be at a glance. (5) This has played an effective real-time anti-black role.

TIPS:

When we enter netstat-A in command line mode, the information about the port opened by the current computer, the information about the remote computer connected to the port, and the current connection status are immediately displayed. To a certain extent, we can determine which ports are enabled for the Local Computer Based on the display, and know which IP addresses are connected to us.

Instance 6: Say goodbye to the IP hacker

Task Description:

Some schools use IP addresses to pay for traffic. Some schools often rely on the IP address modification method to enjoy others' traffic for free. In this case, you can bind the IP address and the corresponding MAC address to the billing server.

Implementation Method:

Step 1:First, obtain the IP address of the real IP user's network card. For example, if the IP address is 192.168.0.1, the MAC address of the network card of a paying user is 00-50-ff-6c-08-75.

 Step 2:Enter the command line mode on the billing server and enter "ARP-s 192.168.0.1 00-50-ff-6c-08-75" to bind the IP address to the MAC address of the NIC. At this point, even if the IP address of the attacker is changed to 192.168.0.1, the attacker cannot access the Internet because the MAC address is inconsistent with the settings on the server.

Step 3:Because the ARP cache table is temporary, it is automatically cleared every time the computer is restarted. If you want to automatically map the IP address to the MAC address after each server startup, You need to place these commands in a batch file and add the batch file to the Startup Group.

TIPS:

ARP is a command for processing MAC address and IP address ing. We can use ARP-a to display the ARP cache table, or use ARP-s IP address MAC address to manually add ing, alternatively, ARP-D can be used to delete all contents of the cache table.

 

Instance 7: The network hard disk can also be used like this

Task Description:

Network hard drive providers are everywhere, but their stability cannot be guaranteed. I don't know which day the service will be suspended. In the end, the precious materials I 've worked so hard to save will be destroyed. In fact, it is the safest and quickest way for LAN users to use server disks as their own network hard disks. Generally, the server is not shut down for 24 hours, and the disk storage speed is also very fast. In addition, the raid technology achieves data redundancy, so it is not surprising to turn it into a network hard disk. We can achieve this through the net use of the network doscommand. The premise is that you must know the user name and password of the server. Assume that the server IP address is 192.168.0.1, the user name is softer, And the password is 123.

Applicable systems:2000/XP/2003

Implementation Method:

Step 1:Enter net use Z: // 192.168.0.1/C $123/User: "softer" in command line mode on the local machine to map the C disk of the server to the local Z disk.

Step 2:Open my computer and you will find an extra Z disk. In fact, it is the disk we just mapped. Double-click it and you will find that the content is the c disk on the server.

Step 3:The method for copying and deleting files is the same as that for operating a local computer. If we want to automatically map disks at startup, we can also save the command we just entered to the batch processing file and add the file to the Startup Group.

 TIPS:

If the server closes the IPC connection or stops the server service, we cannot use this command to establish disk ing.

 

 

 

Instance 8: I have the final say about the service switch.

Task Description:

Run the network doscommand to enable or disable a service. Take the messenger service as an example.

Applicable systems:2000/XP/2003

Implementation Method:

Enter Net start messenger in command line mode to start the messenger service.
7iw YF? Enter net stop messenger in command line mode to disable the messenger service.

 

Instance 9: I have the right to modify the permission.

Task Description:

The Network doscommand is used to assign and modify permissions for a folder. Take the C:/web directory as an example to illustrate how to add, delete, and modify permissions to the directory.

Applicable systems:2000/XP/2003

Implementation Method:

Enter cacls C:/web/g everyone: F in command line mode to add full control permissions for the Everyone group to the web directory. F indicates full control, r indicates read permission, and W indicates write permission.

Enter cacls C:/web/d everyone in command line mode to delete all permissions of the Everyone group in the web directory.

TIPS:

This command can only perform permission operations on the directory on the disk in the NTFS format. If it is in the FAT32 format, this command is invalid.

 

Instance 10: use the net share command to quickly enable and disable sharing.

Task Description:

As we all know, sharing is usually set up in a directory on my computer. Then, right-click the Directory and choose share from the shortcut menu. The operation is complicated. If you are familiar with the net share in the network doscommand, you can quickly create or delete the shared directory. Let's take the local computer C:/share directory sharing and then cancel sharing as an example.

Applicable systems:2000/XP/2003

Implementation Method:

Step 1:In command line mode, enter "net share shared share directory = C:/share" to enable the share directory of the C root directory, set the shared name to "shared share directory ".

Step 2:Enter "net share shared share directory/Delete" to delete the created "Share share directory.

Step 3:Enter net share to quickly view the file and printer resources shared by the current system.

TIPS:

When we access the file sharing resources of computer B from computer A through a network neighbor, we can only see the name of the shared directory, but cannot know the specific path. If a wants B to put a file in a shared directory named share, B cannot immediately find the actual path corresponding to the Share Name, I can only search slowly on my computer, which is a waste of time. In fact, I can enter the net share command in command line mode to quickly search, you only need to find the actual share path from the displayed resource column.

L, b5il4bt; j /~ 'TaguestSummary:

There are many more network doscommands, not just those introduced today. Of course, if you are very interested in these commands, you can enter the command line mode and enter net ?, All net commands and usage are displayed. For more in-depth operations, leave them to the reader.

 

 

 

 

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.