TCP/IP and Winsock clean fix for xp,vista,win7+

Edit: March 2016 – Copy&Paste this to a new text-file, rename the extension from txt to cmd, and right click, run as Administrator.

@echo on
::-------------------------------------------------------------------Firewall Reset (firewall works on XP,7,8+, advfirewall work on 7,8+)
netsh firewall reset
netsh advfirewall reset

::-------------------------------------------------------------------Disable Firewall (firewall works on XP,7,8+, advfirewall work on 7,8+)
netsh firewall set opmode mode=DISABLE profile=ALL
netsh advfirewall set allprofiles state off

::-------------------------------------------------------------------delete http cache
netsh nap reset
netsh rpc reset
netsh winhttp reset
netsh http flush
netsh http delete timeout timeouttype=idleconnectiontimeout
netsh http delete timeout timeouttype=headerwaittimeout

::-------------------------------------------------------------------make connection direct
netsh winhttp reset proxy

::-------------------------------------------------------------------disable tracing (default = disabled, ansi, 65535)
netsh winhttp reset tracing

::-------------------------------------------------------------------delete http cache

netsh http delete cache

::-------------------------------------------------------------------BranchCache Optimize WAN traffic (Windows Server 2008 R2 and Windows® 7)
netsh branchcache reset

::-------------------------------------------------------------------Routing Lists Clear
netsh routing reset

::-------------------------------------------------------------------Network-Adapter’s Software Default (Winsock Reset and Rebuild)
netsh winsock reset

::-------------------------------------------------------------------BranchCache is a new feature of Windows Server 2008 R2 and Windows® 7. BranchCache 
netsh interface ipv4 reset
netsh interface ipv6 reset

::-------------------------------------------------------------------Network-Interfaces Reset
netsh interface reset all

netsh interface httpstunnel reset


::-------------------------------------------------------------------Hardcore TCP/IP Reset and Rebuild
netsh int ip reset c:\temp\netsh_ip_reset_log.txt




pause

older versions:

handle windows xp clean fix

@echo off
echo.
echo -Firewall Reset and Turn-Off.————-
echo —————————–
netsh firewall reset
netsh firewall set opmode mode=DISABLE profile=ALL

echo.
echo -Routing Lists Clear.————-
echo ———————
netsh routing reset

echo.
echo -Winsock Reset and Rebuild.————-
echo ———————
netsh winsock reset

echo.
echo -Network-Interfaces Reset.————-
echo ————————–
netsh interface reset all

echo.
echo -Hardcore TCP/IP Reset and Rebuild.————-
echo ———————————–
netsh int ip reset d:\resetlog.txt

echo.
echo -Done.
pause

handle windows 7 clean fix

netsh interface portproxy reset
netsh http delete cache
netsh interface tcp reset

netsh rpc reset
netsh winsock reset
netsh winhttp reset

netsh advfirewall reset
netsh advfirewall set allprofiles state off
netsh branchcache reset

netsh int ip reset c:\resetlog.txt
netsh int ipv4 reset c:\ipv4reset.txt
netsh int ipv6 reset c:\ipv6reset.txt
netsh int httpstunnel reset c:\httpstunnel.txt
netsh int tcp reset c:\tcp.txt

Leave a Reply