Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- netsh interface set interface name="Local Area Connection" admin=disabled/enabled
- @echo off
- rem get the name of the adapter to turn off
- wmic nic get name
- rem turn off adapter
- wmic path win32_networkadapter where name="SOME ADAPTER THAT NEEDS TURNED OFF" call diable 2>nul
- rem turn on adapter
- wmic path win32_networkadapter where name="SOME ADAPTER THAT NEEDS TURNED OFF" call enable 2>nul
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement