Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. netsh interface set interface name="Local Area Connection" admin=disabled/enabled
  2.  
  3. @echo off
  4.  
  5. rem get the name of the adapter to turn off
  6. wmic nic get name
  7.  
  8. rem turn off adapter
  9. wmic path win32_networkadapter where name="SOME ADAPTER THAT NEEDS TURNED OFF" call diable 2>nul
  10.  
  11. rem turn on adapter
  12. wmic path win32_networkadapter where name="SOME ADAPTER THAT NEEDS TURNED OFF" call enable 2>nul
  13.  
  14. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement