SHARE
TWEET

Windows Network Fix

TairikuOkami Oct 18th, 2015 (edited) 3,663 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rem USE AT OWN RISK AS IS WITHOUT WARRANTY OF ANY KIND !!!!!
  2.  
  3. rem https://support.microsoft.com/en-us/help/10741/windows-10-fix-network-connection-issues
  4. rem Windows Repair Toolbox - https://windows-repair-toolbox.com
  5. rem Network Optimization / TCP Optimizer - www.speedguide.net/downloads.php
  6. rem www.tenforums.com/network-sharing/2806-slow-network-throughput-windows-10-a.html#post553305
  7.  
  8. reg add "HKLM\System\CurrentControlSet\Services\BFE" /v "Start" /t REG_DWORD /d "2" /f
  9. reg add "HKLM\System\CurrentControlSet\Services\Dnscache" /v "Start" /t REG_DWORD /d "2" /f
  10. reg add "HKLM\System\CurrentControlSet\Services\MpsSvc" /v "Start" /t REG_DWORD /d "2" /f
  11. reg add "HKLM\System\CurrentControlSet\Services\WinHttpAutoProxySvc" /v "Start" /t REG_DWORD /d "3" /f
  12.  
  13. sc config Dhcp start= auto
  14. sc config DPS start= auto
  15. sc config lmhosts start= auto
  16. sc config NlaSvc start= auto
  17. sc config nsi start= auto
  18. sc config RmSvc start= auto
  19. sc config Wcmsvc start= auto
  20. sc config WdiServiceHost start= demand
  21. sc config Winmgmt start= auto
  22.  
  23. sc config NcbService start= demand
  24. sc config Netman start= demand
  25. sc config netprofm start= demand
  26. sc config WlanSvc start= auto
  27. sc config WwanSvc start= demand
  28.  
  29. net start DPS
  30. net start nsi
  31. net start NlaSvc
  32. net start Dhcp
  33. net start Wcmsvc
  34. net start RmSvc
  35.  
  36. rem Disable adapter with index number 0-5 (most likely all), equals to ipconfig /release
  37. wmic path win32_networkadapter where index=0 call disable
  38. wmic path win32_networkadapter where index=1 call disable
  39. wmic path win32_networkadapter where index=2 call disable
  40. wmic path win32_networkadapter where index=3 call disable
  41. wmic path win32_networkadapter where index=4 call disable
  42. wmic path win32_networkadapter where index=5 call disable
  43.  
  44. rem Timeout to let the network adapter recover
  45. timeout 5
  46.  
  47. rem Enable adapter with index number 0-5 (most likely all), equals to ipconfig /renew
  48. wmic path win32_networkadapter where index=0 call enable
  49. wmic path win32_networkadapter where index=1 call enable
  50. wmic path win32_networkadapter where index=2 call enable
  51. wmic path win32_networkadapter where index=3 call enable
  52. wmic path win32_networkadapter where index=4 call enable
  53. wmic path win32_networkadapter where index=5 call enable
  54.  
  55. rem advfirewall  - technet.microsoft.com/en-us/library/cc771046(v=ws.10).aspx
  56. rem arp - technet.microsoft.com/en-us/library/cc940107.aspx
  57. rem ipconfig - technet.microsoft.com/en-us/library/bb490921.aspx
  58. rem nbtstat - technet.microsoft.com/en-us/library/bb490938.aspx
  59. rem netsh - technet.microsoft.com/en-us/library/cc770948(v=ws.10).aspx
  60. rem route - technet.microsoft.com/en-us/library/bb490991.aspx
  61. rem support.microsoft.com/en-us/help/10741/windows-10-fix-network-connection-issues
  62.  
  63. arp -d *
  64. route -f
  65. nbtstat -R
  66. nbtstat -RR
  67. netsh advfirewall reset
  68.  
  69. netcfg -d
  70. netsh winsock reset
  71. netsh int 6to4 reset all
  72. netsh int httpstunnel reset all
  73. netsh int ip reset
  74. netsh int isatap reset all
  75. netsh int portproxy reset all
  76. netsh int tcp reset all
  77. netsh int teredo reset all
  78. ipconfig /release
  79. ipconfig /renew
  80. ipconfig /flushdns
  81.  
  82. rem Force restart in 1 minute
  83. shutdown /r /t 60
  84.  
  85. rem If you get "Access denied" message, take ownership of the following key in registry, then set Permissions for the current user to Allow Full Control or try to run BAT in the safe mode
  86. rem HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nsi\{eb004a00-9b1a-11d4-9123-0050047759bc}\26
  87.  
  88. notepad c:\windows\system32\drivers\etc\hosts
  89.  
  90. rem Make sure, that no IPs are blocked in HOSTS, only those 2 entries should be there:
  91. rem #   127.0.0.1       localhost
  92. rem #   ::1             localhost
  93.  
  94. rem To disable restart, type - shutdown /a
  95.  
  96. pause
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top