Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- rem Openvpn down_script resets routing table for main connection adapter
- rem Get NIC list and index number:
- rem wmic nic get name, index
- rem Disable NIC with index number:0
- wmic path win32_networkadapter where index=0 call disable
- rem Enable NIC with index number:0
- wmic path win32_networkadapter where index=0 call enable
- goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement