Solved Windows 11 Pro network selection


I did run your script on this computer. Did it change settings because I rebooted and did not run it again. Is your script what fixed my issue, or was it designed to always run and process new network changes as they come.
It applies the commands on run, and then continuously checks the metrics on a time table. Running it at all times isn’t mandatory though. You probably won’t need to run it again unless something changes the metrics
 

My Computer My Computer

At a glance

Windows 11 Pro
OS
Windows 11 Pro
This was still bugging me so I figured out a wording of the question in google AI. It explained the Metric setting, lower is a higher priority. I made the changes and thought I had victory. ...well partially.

One of my SSID (VPN) is for a different country and the PC properly changed to it and the tray icon reflected the change. One thing still tripped me up though, I tested after a reboot and chose my other SSID and it didn't take priority as I expected. It turns out I needed to switch to that network and change the Metric for that SSID (and any others) separately. In my case all the wifi's are set to 1 and the ethernet to 10, but you can prioritize multiple adapters or wifi as you may have a need for.

For me, ethernet is the fast default, but if I want to use the VPN, I select that wifi. Just as I wanted!

Thanks to everyone that contributed here!

From google AI:
Set a lower interface metric

This method involves manually assigning a lower number to the Wi-Fi connection, with lower numbers indicating higher priority.

  1. Open the Control Panel, set "View by" to "Large icons," and select Network and Sharing Center.
  2. Click Change adapter settings.
  3. Right-click the Wi-Fi connection, select Properties, then select Internet Protocol Version 4 (TCP/IPv4) and click Properties again.
  4. In the new window, click Advanced.
  5. Uncheck the box for Automatic metric.
  6. Enter a low number, such as 1, in the Interface metric box. The lower the number, the higher the priority.
  7. Click OK on all open windows to save the changes
 

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
Back
Top Bottom