Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement