Advertisement
kisslo

reset_nic_down.bat

May 11th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.35 KB | None | 0 0
  1. @echo off
  2. rem Openvpn down_script resets routing table for main connection adapter  
  3.  
  4. rem Get NIC list and index number:
  5. rem wmic nic get name, index
  6.  
  7. rem Disable NIC with index number:0
  8. wmic path win32_networkadapter where index=0 call disable
  9.  
  10. rem Enable NIC with index number:0
  11. wmic path win32_networkadapter where index=0 call enable
  12.  
  13. goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement