sodcalculator

10 Tech How-To

Change WiFi Priority Manually on Your Computer

Guide 10-49390 · Updated · Step by step

This guide shows you how to manually set which Wi‑Fi network your computer connects to first when multiple saved networks are in range. You’ll learn the exact steps for Windows and macOS, plus how to fix it when the computer keeps jumping to the wrong network.

What You’ll Need

  • Administrator access on your computer (to change network settings)
  • The names (SSIDs) of the Wi‑Fi networks you want to prioritize
  • For Windows: the Command Prompt or PowerShell (built-in)
  • For macOS: the Network system preference (built-in)

Step-by-Step

On Windows 10 and Windows 11

  1. Open the Start menu, type cmd, right-click Command Prompt and select Run as administrator. Click Yes if prompted by User Account Control.
  2. Type the following command and press Enter to see a list of all saved Wi‑Fi profiles in priority order (highest first):
    netsh wlan show profiles
  3. Note the exact profile name of the network you want to move up. It must match the SSID exactly, including spaces and capitalization.
  4. To set a network as the highest priority, type this command and press Enter:
    netsh wlan set profileorder name="YourNetworkName" priority=1
    Replace YourNetworkName with the actual profile name.
  5. To set a different priority number (for example, 2 or 3), use the same command with the desired number. Lower numbers mean higher priority.
  6. Repeat for any other networks you want to reorder. Then type netsh wlan show profiles again to verify the new order.
  7. Close the Command Prompt. The change takes effect immediately—the next time your computer scans for Wi‑Fi, it will try the highest-priority network first.

On macOS (Ventura and later)

  1. Open System Settings (Apple menu → System Settings).
  2. Click Wi‑Fi in the sidebar.
  3. Click the Details button next to the network you are currently connected to (or any network you want to reorder).
  4. In the details window, click Remove from Known Networks if you want to delete it, but to reorder, you need to use the Network pane instead.
  5. Go back to the Wi‑Fi settings, then click Advanced… (or Network in older macOS versions).
  6. In the Known Networks list, drag the network names up or down to set the order. The topmost network is the highest priority.
  7. Click OK (or Apply) to save. The new order takes effect immediately.

Note: On macOS Monterey and earlier, go to System Preferences → Network → Wi‑Fi → Advanced and drag the networks in the Preferred Networks list.

Common Mistakes

  • Typing the wrong profile name – The profile name must match exactly. Use netsh wlan show profiles to copy it.
  • Forgetting to run as administrator – The netsh command will fail with “Access is denied” if you don’t have admin rights.
  • Using priority=0 – Priority numbers start at 1. A value of 0 is not valid.
  • On macOS, dragging networks in the wrong list – You must drag in the Known Networks list (or Preferred Networks on older macOS), not in the list of available networks.
  • Assuming priority works when the network is out of range – The computer will only connect to a network that is actually broadcasting. If the top-priority network isn’t in range, it will skip to the next one.

Tips

  • Set your home or office network to priority 1 and your mobile hotspot or public Wi‑Fi to lower priorities to avoid accidental connections.
  • If you often move between two networks (like work and home), set the one you use most as priority 1.
  • On Windows, you can also use PowerShell with the same netsh commands—it works identically.
  • After changing priority, forget any networks you no longer use to keep the list clean and reduce connection delays.
  • If a network is set to “Connect Automatically” but you don’t want it, you can disable that option in the network’s properties instead of changing priority.

Troubleshooting

The command says “Profile name not found”

Double-check the exact profile name using netsh wlan show profiles. The name is case-sensitive and may include spaces. If the network is not in the list, it hasn’t been saved on this computer—connect to it once and check “Connect automatically” before trying again.

The computer still connects to the wrong network

  • Verify the priority order again with netsh wlan show profiles. The list shows the current order.
  • Make sure the network you want is actually in range. If it’s not, the computer will connect to the next available one.
  • On Windows, some third-party security or VPN software can override the priority. Temporarily disable such software to test.
  • On macOS, if you have multiple network locations (e.g., “Automatic” and “Home”), check that the correct location is selected in the Network settings.

Changes don’t stick after a reboot

This is rare, but if it happens, re-run the command after reboot. If the issue persists, check if a Group Policy or IT policy on a work computer is enforcing a specific order.

I can’t drag networks on macOS

Make sure you are in the Known Networks list (or Preferred Networks on older macOS). If the list is greyed out, you may need to unlock the settings by clicking the padlock icon in the bottom-left corner of the Network window.

Frequently Asked Questions

Does changing Wi‑Fi priority affect my current connection?

No. If you are already connected to a network, changing the priority order does not disconnect you. The new order only applies the next time your computer scans for and selects a network.

Can I set different priorities for different Wi‑Fi bands (2.4 GHz vs 5 GHz)?

On Windows, each band may appear as a separate profile if the router broadcasts them with different names (e.g., “MyWiFi” and “MyWiFi_5G”). You can set priority for each profile individually. On macOS, the system usually treats them as one network and picks the best band automatically.

Why does my computer keep connecting to a weaker network even after I set priority?

Priority only determines which network is tried first. If the top-priority network is out of range, has a weak signal, or fails authentication, the computer will move to the next one. Some systems also use signal strength to decide if a network is “available” before trying it.

Is there a way to do this without the command line on Windows?

No, Windows does not expose a graphical interface for reordering saved Wi‑Fi networks. The netsh command is the standard method. On macOS, you can drag networks in the GUI.

Will this work for a network that requires a login page (captive portal)?

Yes, priority works the same, but the computer will still need to open the login page when it connects. If you want to avoid that, you can set that network to a lower priority or forget it.

Does changing priority on one device affect other devices?

No, Wi‑Fi priority is stored per device. Each computer, phone, or tablet has its own list and order.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →