Want more features on Pastebin? Sign Up, it's FREE!
Guest

netfix - 'hatchet' approach to fixing W7 connectivity issues

By: a guest on Feb 16th, 2013  |  syntax: Winbatch  |  size: 0.63 KB  |  views: 93  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. @echo off
  2.  
  3. echo NETWORK CONNECTIVITY RESTORATION SCRIPT
  4.  
  5. echo THIS WILL REBOOT YOUR MACHINE
  6.  
  7. echo PLEASE CLOSE ALL APPLICATIONS NOW
  8.  
  9. pause
  10.  
  11. ipconfig /release
  12. CLS
  13.  
  14. echo NOW FLUSHING DNS CACHE
  15.  
  16. ipconfig /flushdns
  17. :: Flushes DNS cache.
  18.  
  19. arp -d *
  20. :: Flushes ARP cache.
  21.  
  22. route -f
  23. :: Clears routing tables.
  24.  
  25. nbtstat -R
  26. :: Purges NetBIOS remote cache name table (reloaded on reboot)
  27.  
  28. CLS
  29. echo.
  30.  
  31. echo RESETTING SOME SYSTEM CACHES
  32.  
  33. netsh int ipv4 reset
  34. :: Resets IPv4 cache
  35.  
  36. netsh winsock reset catalog
  37. netsh winsock reset
  38. :: Resets winsock catalog
  39.  
  40. CLS
  41. echo SYSTEM WILL NOW RESTART
  42.  
  43. pause
  44.  
  45. shutdown -r -t 0
clone this paste RAW Paste Data