Choose which Wi-Fi network Windows prefers — via Microsoft Learn
When two known networks are in range (for example the 5 GHz and 2.4 GHz versions of your router), Windows may pick the wrong one. You can move a saved network to the top of the preference list.
Takes effect right away
Command
Run in an administrator Command Prompt / Terminal window.
netsh wlan show profiles
netsh wlan set profileorder name="MyNetwork-5G" interface="Wi-Fi" priority=1Undo
rem Run set profileorder again with the old order, e.g. priority=1 for the network you want back on top.Use the exact profile and interface names from the first command. Only user-created profiles can be reordered; Group Policy profiles always come first. Microsoft says changing the order this way can also shift mobile-broadband profiles unexpectedly on PCs with a SIM.
Sources
- netsh wlan — set profileorder — by Microsoft Learn
- Understand and configure Windows Connection Manager — Network preferences — by Microsoft Learn
- Source reviewed
- 2026-11-02
- Link checked
- 2026-11-02
- Tested hands-on
- Not by Oddbyte.Me
Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.