
netfix - 'hatchet' approach to fixing W7 connectivity issues
By: a guest on
Feb 16th, 2013 | syntax:
Winbatch | size: 0.63 KB | hits: 84 | expires: Never
@echo off
echo NETWORK CONNECTIVITY RESTORATION SCRIPT
echo THIS WILL REBOOT YOUR MACHINE
echo PLEASE CLOSE ALL APPLICATIONS NOW
pause
ipconfig /release
CLS
echo NOW FLUSHING DNS CACHE
ipconfig /flushdns
:: Flushes DNS cache.
arp -d *
:: Flushes ARP cache.
route -f
:: Clears routing tables.
nbtstat -R
:: Purges NetBIOS remote cache name table (reloaded on reboot)
CLS
echo.
echo RESETTING SOME SYSTEM CACHES
netsh int ipv4 reset
:: Resets IPv4 cache
netsh winsock reset catalog
netsh winsock reset
:: Resets winsock catalog
CLS
echo SYSTEM WILL NOW RESTART
pause
shutdown -r -t 0