Restoring network settings in Windows 7. The netsh winsock reset command to reset the network protocol stack

Friends, hello everyone! In this article we will again talk about resetting the network settings of Windows 7 and 10. Although over time, nothing has changed in this regard, which means that these instructions are also suitable for good old XP.

If you remember, there was already a thread on this topic, but the other day when troubleshooting network problems, it didn’t help me. The fact is that the combination of commands indicated in it did not work this time. For unknown reasons, the command line reported that it does not know such parameters.

Therefore, I again went to the official Microsoft help to find a way out of this situation. And this is what I came to in the end.

How to reset network settings of Windows 7, 10 and XP with one command?

First, you need to run the command prompt as an administrator. How to do this was detailed. Next, we write in it just one line like this:

Netsh int ip reset resetlog.txt

After this, be sure to reboot the experimental computer. That's it, now everything to the network should be a thing of the past. By the way, if you want to get acquainted in detail with the results of the netsh command (Network Shell - a shell for configuring TCP/IP parameters) using a log file named resetlog.txt, then you can also specify the following command:

Netsh int ip reset c:\resetlog.txt

Now the above file will appear in the root of the system drive C. But the main point is that to successfully perform a reset, the file name at the end of the command must be specified. Also, before starting the process, be sure to write down your current network card settings.

After all, the treatment procedure described in this article will lead to the removal of all valid IP address values. Well, friends, this article about resetting the network settings of Win 7 and 10 has come to an end. If so, ask your questions in the comments. And now, as always, let's watch another interesting video.

Sometimes, it happens that the Internet connection settings go wrong or simply does not want to connect to the network (does not receive an IP address via DHCP). Similar problems can occur as a result of the operation of certain malicious programs (viruses). You can torture those for a long time. support from your provider or call a specialist at home. You can try to fix the problem yourself.
There is a special program to reset TCP/IP in Windows NT (2000/XP/Seven) operating systems netsh.exe.

netsh.exe— (Network Shell) allows you to configure network parameters.

Some nasty viruses get into WinSock and cause mischief.
Symptoms:

  • The speed of downloading files via TCP is very low (while downloading via UDP can be fast);
  • When you turn on the computer for a while, a couple of minutes, the Internet works fine, but then it disappears completely (the speed drops to 0);
  • The Internet is working and the download speed is normal, but the downloaded file turns out to be broken because it is not downloaded completely (most likely the virus intercepts some of the packets during transmission, but sends a notification to the source that all packages have been successfully received).

In addition to viruses, you can also “break” your Internet connection yourself (or it “got wrong”)

Some examples:

  • The computer does not receive an IP address automatically (via DHCP);
  • IP addresses are pinged but not names;
  • The computer receives an IP address of the following type: 169.254.*.*;

If you have cleared yourself of viruses, you can begin recovery. ATTENTION! The following procedures will reset your network settings. I strongly recommend rewriting the settings.
To reset Winsock:

If the first command did not help solve the problem, you can reset the TCP/IP stack to factory settings:
There in the command line, enter the command:

netsh int ip reset c:\resetlog.txt

In this case, the reset log will be saved in the root of the C:\ drive; if you omit the c:\ prefix, the log will be saved in the current directory. After this, you should restart your computer.

After using this command, the following registry branches will be reset to factory settings:

SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
SYSTEM\CurrentControlSet\Services\DHCP\Parameters\

You can use these commands together one after the other. By the way, they also reset the DNS cache.
About DNS cache problems: For example, the site moved to another hosting, as a result its IP address changed. And since you have some not quite fresh data in your cache, when you enter the site name, you will be taken to the old IP address, where the site no longer exists.

To avoid resetting all settings, try the command ipconfig /flushdns If it doesn't help, use netsh int ip reset resetlog.txt- this is guaranteed to help and reset everything related to network connections. 😉

Windows 10 includes a new feature called Network Reset that will quickly return network settings to default for all network adapters on the system. It can be very useful to reset your network settings if you are having connection problems, especially after removing malware.

Network Reset will allow you to remove and reinstall all network adapters, as well as install other network components back to the original settings. You may need to reinstall other network software after this, such as VPN client software or virtual switches.

Open Settings WinKey+I and press Network and Internet

Click State


On the status page, there are several links that allow you to correct your network configuration. One of them is the diagnostic package "Network Troubleshooter", which runs a network scan on your system and will suggest fixes if needed.

If for some reason the Network Troubleshooter does not find any errors and cannot fix your connection, you need to Network reset.


Because Reset Network resets all network cards, returns initial Winsock settings, etc. If you have a custom network configuration, make a note of your settings. Also, make a note of your Wi-Fi configuration and associated passwords before resetting. After that, click the button Reset Now.


Click the button Yes. Windows 10 will reset the network adapters and return Winsock to its original state.


Please note: Windows10 will automatically reboot after 5 minutes.

Previously, the user had to run these commands manually to clear the network adapter configuration and reset Winsock.

  • netcfg -d
  • netsh winsock reset

Now you know how to do a Network Reset in Windows 10.

In the instructions on this site related to problems with the Internet, such as, and others, among the solutions there is always a reset of Windows network settings (DNS cache, TCP/IP protocol, static routes), usually using the command line .

The Windows 10 1607 update introduces a feature that makes it easier to reset all network connections and protocols, literally with the click of a button. That is, now, if any problems arise with the operation of the network and the Internet, and provided that they are caused by incorrect settings, these problems can be solved very quickly.

Resetting network and Internet settings in Windows 10 settings

When performing the steps below, keep in mind that after resetting your Internet and network settings, all network settings will return to the state they were in when you originally installed Windows 10. That is, if your connection requires you to enter any settings manually, you will have to repeat them.

To reset network settings, network adapter settings, and other components in Windows 10, follow these simple steps.

After clicking the button, you will need to confirm resetting the network settings and wait a while for the computer to reboot.

After rebooting and connecting to the network, Windows 10, as after installation, will ask you whether this computer should be found on the network (that is, your network is public or private), after which the reset can be considered complete.

Note: This process removes all network adapters and reinstalls them on the system. If you previously had problems installing network card or Wi-Fi adapter drivers, there is a chance that they will happen again.

Resetting the network adapter

Right-click on the network icon in the notification panel. Select. Next, in a new window, click on Changing adapter settings. A window will open with access to the Internet.

If you need to change the settings for connecting via a network cable, then right-click on the adapter Ethernet. If to connect via Wi-Fi, then the connection Wireless network. Select an item Properties.


In the new window you can set automatic receipt of addresses for this adapter (by highlighting the items Obtain an IP address automatically and Obtain a DNS server address automatically), or set addresses statically.

After making changes, do not forget to apply the settings by clicking on the button Ok.


Restart your computer and try connecting to the Internet.

Instructions for Windows 7

In Windows 7, everything is done exactly the same as on Windows 8. It would be possible not to write separately for the seven, but so be it.

Right-click on the network icon, then select Network and Sharing Center. Next, click on I Changing adapter settings, and again right-click on the adapter whose properties we want to change. Select from the menu Properties. Like this:


Select the item Internet Protocol Version 4 (TCP/IPv4) and press the button Properties. We indicate the required IP and DNS, or set them to be received automatically, and click Ok.

Setting up automatic obtaining (or setting static) IP and DNS on Windows XP

Click on Start and open Control Panel. Then, select Network and Internet connections.

aligncenter wp-image-8033 colorbox-8012" src="http://kirensk.net/images/up/28-08-2014-15-12-45.jpg" alt="Network connections in Windows XP" width="649" height="446">!}

We see network connections that are available on our computer. Right-click on the desired connection and select Properties.

Select an item Internet Protocol (TCP/IP) and press the button Properties.

As in the two systems that I wrote about above, we set the parameters we need for obtaining IP and DNS. Either receive automatically, or set static addresses and click Ok.


sfc /scannow

HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer
HKLM\SYSTEM\ControlSet001\Services\LanmanServer
HKLM\SYSTEM\ControlSet002\Services\LanmanServer

Sometimes, it happens that the Internet connection settings go wrong or simply does not want to connect to the network (does not receive an IP address via DHCP). Similar problems can occur as a result of the operation of certain malicious programs (viruses). You can torture those for a long time. support from your provider or call a specialist at home. You can try to fix the problem yourself.
There is a special program to reset TCP/IP in Windows NT (2000/XP/Seven) operating systems netsh.exe.

netsh.exe- (Network Shell) allows you to configure network parameters.

Some nasty viruses get into WinSock and cause mischief.
Symptoms:

  • The speed of downloading files via TCP is very low (while downloading via UDP can be fast);
  • When you turn on the computer for a while, a couple of minutes, the Internet works fine, but then it disappears completely (the speed drops to 0);
  • The Internet is working and the download speed is normal, but the downloaded file turns out to be broken because it is not downloaded completely (most likely the virus intercepts some of the packets during transmission, but sends a notification to the source that all packages have been successfully received).

In addition to viruses, you can also “break” your Internet connection yourself (or it “got wrong”)

Some examples:

  • The computer does not receive an IP address automatically (via DHCP);
  • IP addresses are pinged but not names;
  • The computer receives an IP address of the following type: 169.254.*.*;

If you have cleared yourself of viruses, you can begin recovery. ATTENTION! The following procedures will reset your network settings. I strongly recommend rewriting the settings.
To reset Winsock:

If the first command did not help solve the problem, you can reset the TCP/IP stack to factory settings:
There in the command line, enter the command:

netsh int ip reset c:\resetlog.txt

In this case, the reset log will be saved in the root of the C:\ drive; if you omit the c:\ prefix, the log will be saved in the current directory. After this, you should restart your computer.

After using this command, the following registry branches will be reset to factory settings:

SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
SYSTEM\CurrentControlSet\Services\DHCP\Parameters\

You can use these commands together one after the other. By the way, they also reset the DNS cache.
About DNS cache problems: For example, the site moved to another hosting, as a result its IP address changed. And since you have some not quite fresh data in your cache, when you enter the site name, you will be taken to the old IP address, where the site no longer exists.

To avoid resetting all settings, try the command ipconfig /flushdns If it doesn't help, use netsh int ip reset resetlog.txt- this is guaranteed to help and reset everything related to network connections.

Reset the TCP/IP and Winsock protocol stack.

One of the components of connecting to the Internet on a computer is a built-in set of instructions called TCP/IP. Sometimes TCP/IP is damaged (consequences of some viruses, installation of incorrect network card drivers, etc.). If you can't connect to the Internet and have tried everything to solve the problem, it is possible that the problem is the TCP/IP protocol.

Because TCP/IP is a component of the Windows kernel, it cannot be removed. However, you can reset TCP/IP to its original settings using the NetShell tool ( netsh).

Signs:
a) I can’t connect to the Internet or

In most cases, if there were problems with the Internet or local network, the user was advised to reset all network settings of the system. This helped solve most problems. Basically, such actions were carried out through the command line, however, in update 1607 for tens appeared standard function, which is capable of doing all this on its own. This article will talk in more detail about resetting network settings for Windows.

With this reset, all network parameters will return to their initial values. This means that if any settings were required for the Internet to work, they will have to be done again. In addition, in some cases, rolling back settings not only does not help fix the problems, but also makes everything worse; you should act here only when the user is completely sure of the need.

Resetting network settings using standard means

To reset the wireless network adapter settings, go to Start, and from there go to the settings section. Here you should look for an item called “ Network and Internet", and from here go to the section " state».

Here you should examine the window and find Network Reset. After clicking, a small window will appear in which a description of the actions performed by the computer, as well as their consequences, will be given. Worth clicking Reset now. After which it will take some time to remove and install drivers for network adapters. Next, the device will reboot. After the start you will have to restart enter all settings and specify the network to connect to.

Resetting network settings via command line

This method is suitable for those who do not have the update, or for those who were not helped by the previous method. First you need to open the console with administrator rights. This can be done by right-clicking on start and clicking on the desired item.

Rolling back parameters can be done using two operators, the first is netsh int ip reset.

The second statement looks like this: netsh winsock reset.

After completing them, you will need to restart the device. At this point, the rollback of parameters can be considered complete.

We use Fix20140

At a time when there was no built-in utility, it was possible to download such an application from the developer’s website separately. This can be done via the link https://support.microsoft.com/ru-ru/kb/299357. The user can click on it and try to download it, however, Microsoft sometimes removes outdated versions of programs, so it may not be there.

After downloading, you will need to run it and click Next. It will take some time to collect information and run the utility, after which you should restart the device.

Network adapter settings

After rolling back the settings, all parameters will be reset and the user will need to configure again. It may be worth checking the same parameters before resetting; if the error lies in them, then changing just a couple of settings can help solve the problem.

Setting up a wired connection

To begin, the user will need to right-click on the computer icon in the tray; it is responsible for the wired connection. In the menu that appears, select network and sharing center. In the window that opens, click on the section Changing adapter settings, these actions will take you directly to a window that shows all connections.

After this, all you have to do is right-click on the wired connection, go to the ipv4 protocol and set it to receive settings automatically.

PPPoE on Windows 10

If you need to enter a login and password, then the connection should be configured a little differently. First, you should go to the same Network Control Center, and then go to the “ Create and configure a new connection or network", in the next menu you should specify your Internet connection, then open High-Speed. After all the manipulations, a menu will appear in which you must enter the parameters issued by the provider.

Using Wi-Fi

If the user has a wireless network, then everything is quite simple. First, click on the Wi-Fi icon in the lower left corner of the screen, next to the clock. If it's not there, then it's worth it will check the parameters your device, it may be disabled.

After clicking, a list will be displayed in which all available networks will be presented. You should click on the one you need, after which you will either be connected or have to enter a password.

Settings for 3G or 4G

In this case, you will also have to proceed to creating a new connection, as was done in the previous section. You just have to choose Dial-up, instead of high speed. Here you will also have to enter your username and password, as well as the number to dial. After saving all the parameters, this connection will be available in the Dialing section.

If the modem has its own software, then it is worth installing and configuring it, perhaps it will be easier.

Friends, hello everyone. Happy New Year to you old new year! It’s good when holidays follow each other so often. But nevertheless, you shouldn’t forget about work, especially when you like it.

And today we will talk about the team netsh winsock reset. I'll tell you what kind of animal it is and what it is needed for. In fact, with its help, I have already restored functionality more than once in my modest administrative experience.

So, sometimes things that are not entirely clear may start happening to your computer, for example:

  1. No ping by IP address, but availability by name or vice versa. However, the standard settings were not changed.
  2. A drop in the speed of downloading files from the Internet, as well as a complete loss of connection some time after turning on the PC.
  3. Inability to connect to the network with manual IP address settings, while everything works in automatic mode. Although, again, everything can be the other way around.
  4. Inability to obtain an automatic IP address when a DHCP server is configured.
  5. Absence of any IP address, gateway and subnet mask values ​​when there is an active connection to the local network.

In general, when inexplicable glitches begin to occur with the network settings of a machine, it will help us netsh winsock reset. It is with the help of this command that you can restore network settings to default and restore functionality.

This procedure is also called protocol stack reset winsock and almost always it is used in conjunction with a TCP/IP reset. That is, the Windows components that are responsible for network connections are reset.

Now let's talk about what causes such problems. Here, as they say, you don’t need much for trouble. This is often caused by viruses that have entered the computer, various conflicts, or incorrect installation of network card drivers, and so on.

But enough theory, let's get down to business. Just remember that this reset will also remove all network settings on your PC. Therefore, study them in advance. This can be especially important on office computers with dedicated .

So, open and enter the following combination of commands. The screenshot below was taken in the Windows XP operating system, but in Win 10 everything will happen identically, only you need to run “cmd” as an administrator:

  • netsh int reset all
  • netsh winsock reset

Then you should definitely restart the computer and you can check the behavior on the network for adequacy. By the way, I completely forgot to say that before resetting the winsock protocol stack, it is advisable to thoroughly disinfect the system, otherwise everything may happen again. Remember Poltergeist