Reset Network Stacks

Corrupted Winsock/IP stacks will often cause a machine to have network connectivity, but it can't browse the web. This simple batch file resets the Winsock and IP stacks. Reboot after running.

Source Code

This script has not been checked by Spiceworks. Please understand the risks before using it.

1

2

3

4

5

6

7

8

9

10

11

12

@echooffREM This process will often fix a PC that appears to have network connectivity, but won't browse the webREM This resets the Winsock and TCP/IP stacksREM The ip/ipv4 is labeled differently in XP/Vista/7. You'll get one error on one of these when launchingREM System requires reboot after this batch
netsh winsock resetcatalog
netsh int ip resetreset.log
netsh int ipv4 resetreset.log
netsh int ipv6 resetreset.log