Advertisement
Guest User

netfix - 'hatchet' approach to fixing W7 connectivity issues

a guest
Feb 16th, 2013
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement