Created
March 29, 2018 05:10
-
-
Save geekman/b9f80a75863177e8ea79c55cbb3e1b70 to your computer and use it in GitHub Desktop.
making sure your USB network adapter doesn't take over your default gateway & Internet connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to verify, use `route print` and check the order in which the interfaces are listed | |
Get-NetAdapter | Where-Object {$_.InterfaceDescription -like '*USB*'} | Set-NetIPInterface -InterfaceMetric 9999 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
previously, Windows used to have this Adapters & Bindings thing, but Windows 10 got rid of that: