Laptop Connects to Phone Hotspot Instead of University Wi-Fi? How to Set Wi-Fi Priority in Windows 11
You arrive at the university, open your laptop, and find it is still connected to your mobile phone's Wi-Fi hotspot, even though the university Wi-Fi is available and faster. If this sounds familiar, you are not alone. Windows 11 has a simple way to fix it: you can set the priority order of your saved Wi-Fi networks, so the laptop prefers the university network over your phone.
Quick answer: open Windows Terminal as administrator, then run netsh wlan set profileorder for each saved network, giving the university Wi-Fi priority 1 and the phone hotspot the last number. Then disconnect from the hotspot once and connect to the university network.
Why does my laptop connect to my phone instead of the university Wi-Fi?
Windows keeps a profile for every Wi-Fi network you have used. Each profile stores the network name (SSID), its security settings, and whether it should connect automatically. When several saved networks are in range, Windows chooses one. The usual reasons it picks your phone are:
The hotspot profile ranks higher. Profiles are ordered, and a recently added network can end up near the top.
It is already connected. Windows normally stays on the current network until it drops, even if a preferred one appears later.
The university network is not saved. Priority only works for networks saved on this laptop. If you have never connected to it, or removed it, Windows cannot choose it.
Automatic connection is off for the university profile.
Signal strength. A weak university signal can make a close phone hotspot look better.
Example setup used in this guide
This guide uses fictional network names. Replace them with the names that appear on your own laptop.
Priority
Network (example)
Purpose
1
Campus_WiFi
University network
2
Home_WiFi_Main
Main home network
3
Home_WiFi_Second
Second home or family network
4
Phone_Hotspot
Mobile phone hotspot
Step 1: Open Windows Terminal as administrator
Right-click the Windows Start button.
Select Terminal (Admin).
If User Account Control asks for permission, click Yes.
You can also search for "Command Prompt", right-click it, and choose Run as administrator.
Step 2: List your saved Wi-Fi networks
netsh wlan show profiles
Windows shows all saved profiles, for example:
Profiles on interface Wi-Fi:
User profiles
-------------
All User Profile : Phone_Hotspot
All User Profile : Home_WiFi_Main
All User Profile : Home_WiFi_Second
All User Profile : Campus_WiFi
In this example the phone hotspot is listed first, which is why the laptop prefers it.
Important: use the names exactly as Windows shows them, including capital letters, spaces and underscores. If your university network is not in the list, connect to it once from the Wi-Fi menu, then run the command again.
Step 3: Check the name of your Wi-Fi adapter
The commands below use the adapter name Wi-Fi, the default on most laptops. Confirm yours with:
netsh wlan show interfaces
Look for the line that starts with Name. If it is not "Wi-Fi", use that name in the commands that follow.
Step 4: Give the university Wi-Fi priority 1
netsh wlan set profileorder name="Campus_WiFi" interface="Wi-Fi" priority=1
Step 5: Set the other networks below it
Run one command for each of your other networks, changing the name and the priority number. Give your phone hotspot the last number.
netsh wlan set profileorder name="Home_WiFi_Main" interface="Wi-Fi" priority=2
netsh wlan set profileorder name="Home_WiFi_Second" interface="Wi-Fi" priority=3
netsh wlan set profileorder name="Phone_Hotspot" interface="Wi-Fi" priority=4
Quick reference: all commands in one block
netsh wlan show profiles
netsh wlan show interfaces
netsh wlan set profileorder name="Campus_WiFi" interface="Wi-Fi" priority=1
netsh wlan set profileorder name="Home_WiFi_Main" interface="Wi-Fi" priority=2
netsh wlan set profileorder name="Home_WiFi_Second" interface="Wi-Fi" priority=3
netsh wlan set profileorder name="Phone_Hotspot" interface="Wi-Fi" priority=4
Step 6: Verify the new order
Run the list command again. The university network should now appear first and the phone hotspot last:
netsh wlan show profiles
To inspect one profile, including whether it connects automatically:
netsh wlan show profile name="Campus_WiFi"
Step 7: Switch to the university network once
Changing the order does not always disconnect you from the network you are using now.
Click the Wi-Fi icon in the taskbar.
Disconnect from the phone hotspot.
Select the university network and connect to it if needed.
From then on, Windows can use the new order when it chooses a network.
Optional: stop the phone hotspot from connecting automatically
If you want to use your phone only when you choose, set the hotspot profile to manual connection. The profile stays saved.
netsh wlan set profileparameter name="Phone_Hotspot" connectionmode=manual
To undo it later:
netsh wlan set profileparameter name="Phone_Hotspot" connectionmode=auto
You can also do this without commands. Open Settings > Network & internet > Wi-Fi > Manage known networks, select the network, and turn off Connect automatically when in range.
Can I remove old Wi-Fi networks?
Yes, but you do not need to in order to change priority. To remove a network you no longer use:
netsh wlan delete profile name="Old_WiFi"
Deleting a profile also deletes its saved password. You will have to enter it again to reconnect.
Troubleshooting
The profile was not found
The name does not match exactly. Copy it from the output of netsh wlan show profiles.
Access is denied
Open Windows Terminal as administrator and run the command again.
The adapter name is wrong
Run netsh wlan show interfaces and use the name shown there instead of "Wi-Fi".
The laptop still joins the phone hotspot
Check that the university profile is saved and set to connect automatically, that its signal is in range, and that you have disconnected from the hotspot once. If it still happens, set the hotspot to manual connection as shown above.
The university Wi-Fi asks for a login
Some university networks, such as eduroam, need institutional credentials and specific security settings. Changing priority does not change them, so sign in once and let Windows save the profile.
Important considerations
1. Priority is not a guarantee
Windows also considers signal strength and connection settings, so profile order will not always decide the connection.
2. The network must be available
Your laptop cannot connect to a preferred network that is out of range or not broadcasting.
3. No extra software is needed
Netsh is part of Windows, so you do not need to install any third-party tool.
4. Managed devices
Laptops managed by a school or employer can have policies that block or override these changes.
Frequently asked questions
Does changing Wi-Fi priority delete saved passwords?
No. Changing the order does not delete passwords or authentication settings.
Can I keep my phone hotspot saved with the lowest priority?
Yes. It stays saved, and you can still connect to it manually whenever you want.
Does this work on Windows 10?
Yes. The same Netsh wireless profile commands also work on Windows 10.
Can I do this without administrator access?
Some operations may work without it, depending on how Windows and the profile are configured. If you get an access-denied error, run the terminal as administrator.
Can I set the order for many networks?
Yes. Run one set profileorder command per network, with the priority numbers you prefer.
Conclusion
If your laptop keeps choosing your mobile hotspot over the university Wi-Fi, the fix takes only a few commands. Put the university network first, move the hotspot last or set it to manual, and disconnect from the hotspot once. You keep all your saved networks, and Windows gets a clear preference for the one you want.
Disclaimer: This article is for general educational purposes only. The network names, such as Campus_WiFi, Home_WiFi_Main and Phone_Hotspot, are fictional examples and do not refer to any real person, place or organisation. The commands change settings on your computer, so use them at your own risk and note your current settings before making changes. Results can vary depending on your Windows version, network adapter, drivers and any policies set by your school or employer. This article is not affiliated with or endorsed by Microsoft, and the author is not responsible for any loss, interruption of service or other issue resulting from the use of this information.
Welcome to our topic archives. Below are curated blog posts tagged under this topic. Each label page collects related content to help you explore deeper. Check back often as we regularly update our blog with fresh posts.
🚀✍️ Embrace your passion for words and turn your free time into an exciting writing adventure & earning! Collaborate with us and elevate your writing game. 🌟
🚀✍️ Explore the world of guest writing and enjoy the added bonus of a backlink to your blog. Let's create captivating content together! 🌟