Skip to content

Instantly share code, notes, and snippets.

@geekman
Created March 29, 2018 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geekman/b9f80a75863177e8ea79c55cbb3e1b70 to your computer and use it in GitHub Desktop.
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
# 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
@geekman
Copy link
Author

geekman commented Mar 29, 2018

previously, Windows used to have this Adapters & Bindings thing, but Windows 10 got rid of that:

There are no longer any components that utilize the binding order. The only known component that used the binding order was DNS ordering. By default, Windows uses the Route Metric + Interface Metric to determine which route has the highest priority by choosing the route with the lowest value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment