You can connect to both a WiFi network and a wired network on a Windows 10 machine. Windows 10 will favor the LAN connection over the WiFi one in most cases because it’s faster and more reliable. Having them both connected at the same time doesn’t offer any advantage in terms of speed; you won’t get faster internet with two connections. Your system will simply use one connection and whatever speed it has to offer.
The one advantage of having both connections active at the same time is that if one fails, you will switch over to the other one. It doesn’t guarantee that there won’t be any interruption in traffic only that it will recover from it quickly.
Disable WiFi when LAN is connected
Windows 10 has a built-in method for disabling the WiFi when you’re on a LAN. It’s not easily accessible so most people do not know the feature even exists.
1. Change network adapter settings
In order to disable WiFi when connected to LAN, you need to change the network adapter settings.
- Make sure you’re connected to a WiFi network.
- Open File Explorer and enter the following in the location bar, and tap Enter.
Control Panel\Network and Internet\Network and Sharing Center
- Click your WiFi connection.
- In the window that opens, click ‘Properties’ under the Activity section.
- Click Configure.
- Go to the Advanced tab.
- Scroll through the list of properties and find ‘Disabled Upon Wired Connect‘.
- Select it, and open the Value dropdown on the right. Set it to Enabled.
- Restart your Windows 10 machine.
2. Set priority for LAN
If you do not have the Disabled Upon Wired Connect option, you can try the following instead.
- Open Device Manager.
- Expand Network Adapters.
- Look for the network controller. It may have a name like Realtek controller, or similar. If you’re not sure, try all the devices listed until you find the below options.
- Right-click it, and select Properties.
- Go to the Advanced tab and look for Priority & Vlan and select it.
- Open the value dropdown and select the Enabled option.
- Restart the system.
3. Disconnect WiFi on LAN – PowerShell
It is possible the above option doesn’t work because the Disabled Upon Wired Connect option may not be listed. In that case, you can set the WiFi to be enabled when you’re on LAN from PowerShell.
- Open PowerShell with admin rights.
- Download this script. Extract it. There will be two files in it.
- Run the following command in PowerShell to allow the script to run.
- Use the following command to move to the extracted folder (change the path for the folder on your system).
- Add the script to your system with the following command.
- Once the script has run, open Task Scheduler, look for a task named WLAN Manager task.
- Restart the PC.
Removing the script
You may want to remove this script later. All you have to do is remove the WLAN Manager task from the Task Scheduler and restart your PC. If the WiFi option has disappeared from your system, open Device Manager and look under Network Adapters for disabled devices. Enable any disabled devices and you will have WiFi back.
Another way to remove it is to open PowerShell with admin rights and run the following command.
4. Disconnect WiFi on LAN from GroupPolicy
You can set the WiFi to disable automatically when connected to a wired connection from the GroupPolicy. The GroupPolicy is only available on Windows 10 Professional and not on the Home edition. You can install GroupPolicy on it but it may not work as well.
- Tap the Win+R keyboard shortcut to open the Run box.
- Enter the following and tap Enter.
- Go to the following policy group.
Computer Configuration>Policies>Administrative Templates>Network>Windows Connection Manager
- Look for a policy called Prohibit connection to non-domain networks when connected to domain authenticated network. Enable it.
5. Set Connection Priority
If none of the above options work for you, or you’re looking for something simpler, you can set the connection priority on your Windows 10 machine and have it prefer a LAN connection over WiFi when both are available.
- Download an app called Wired WiFi Switcher.
- Run the app and during installation, select the LAN adapter to be prioritized over the wireless adapter.
- Complete installation, and restart your system.
Managing a WiFi network on its own is easy but when you have to manage more than one network, and the network types are different i.e., wired and wireless, Windows 10 doesn’t have many user-friendly options. There is also the fact that different systems have different configurations. What works on one system may not work on another which is why we have a few different solutions you can try. If all else fails, you can always give a LAN priority over WiFi without breaking your system. Alternatively, Windows 10 has an easy-to-access toggle in the Action Center that lets you turn WiFi On/Off.