If several Wi-Fi networks are available, Windows automatically selects a wireless network with better signal strength (no matter what the speed of this connection is and how many devices are connected to it). However, when you connect your computer (laptop) to a wired Ethernet network, Windows keeps on using a Wi-Fi network, though the Ethernet connection speed is significantly higher, and the connection is more stable and not subject to interference. To switch to the cable Ethernet connection, a Windows user has to manually disable the Wi-Fi connection each time. Let’s see how to automatically turn off Wi-Fi when the Ethernet LAN cable is connected on Windows 10 and 11.
- WLAN Switching Options in BIOS/UEFI
- Disable Wi-Fi Upon Wired Connect with Wireless Adapter Driver
- Enable/Disable Wi-Fi Adapter When Connected to LAN with Task Scheduler
- Turn Off Wi-Fi on Ethernet Connection Using WLAN Manager PowerShell Script
- Disable Non-Domain Wireless Networks When Connected to LAN via GPO
WLAN Switching Options in BIOS/UEFI
Many laptop/desktop vendors have their own implementations of the LAN/WLAN Switching technology (it can be called differently). This technology suggests that only one network adapter can simultaneously transmit data on a computer. If while using a Wi-Fi network, a higher priority Ethernet connection appears on a device, the Wi-Fi adapter should automatically go into standby mode. This saves battery life and reduces the load on the wireless network.
You can enable LAN/WLAN Switching option in the BIOS/UEFI settings or in the properties of your wireless network adapter driver (it depends on your hardware vendor).
Restart your computer to enter the UEFI/BIOS settings, then find and enable the LAN/WLAN Switching option (on HP devices) or Wireless Radio Control (on Dell devices).
This feature may be called differently or completely absent in BIOS/UEFI of other manufacturers.
Disable Wi-Fi Upon Wired Connect with Wireless Adapter Driver
In the settings of some Wi-Fi adapter drivers, there is an option to automatically turn off the Wi-Fi if the high-speed Ethernet connection is available.
Open the Windows Device Manager (devmgmt.msc
), find your Wireless network adapter in the Network adapters section and open its properties. Go to the Advanced tab.
Find the Disabled Upon Wired Connect item in the list of Wi-Fi adapter options. Change its value to Enabled and save the driver changes.
Thanks to this option, the wireless network driver will disconnect the adapter from the Wi-Fi network when an active Ethernet LAN connection is detected.
Not all Wi-Fi adapter models support this option. For other wireless network adapters, you can automate switching to Ethernet using a scheduler task or a PowerShell script.
Enable/Disable Wi-Fi Adapter When Connected to LAN with Task Scheduler
Let’s look at how to automatically enable and disable Wi-Fi adapters in Windows using special Task Scheduler jobs that are bound to an Ethernet cable connection/disconnection event ( we will use Windows Scheduler event trigger).
The first step is to enable the Wired AutoConfig service (dot3svc) and set it to start automatically. You can check the status of a service and change the startup mode using PowerShell:
Set-Service dot3svc -startuptype automatic -passthru
Start-Service dot3svc
Get-Service dot3svc
Now open the Event Viewer (eventvwr.msc
) and go to Applications and Services Logs -> Windows -> Wired-AutoConfig -> Operational. Here we are interested in two following events:
- Event ID 15501 —
The network adapter has been connected.
- Event ID 15500 —
The network adapter has been unplugged.
EventID: 32 — Network link is established
) and ( EventID: 27 – Network link is disconnected
).We will bind PowerShell commands to these events in order to enable and disable the Wi-Fi adapter automatically. To do this, you need to get the name of your Wi-Fi network adapter in Windows. You can list network adapters with PowerShell:
Get-NetAdapter
In our example, the adapter name is TPLinkWiFi.
Click on event 15501 in the Event Viewer and select Attach task to this event.
Specify the scheduler task name DisableWiFi_if_Ethernet_Connected-15501. Select Start a program as the task action. To disable the Wi-Fi adapter, you need to run the following command:
Program: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
6 comments
I trade the stock market and have a question. If I use a UPS and a wired internet connection and I have a power outage therefore losing the wired internet, will this procedure work to automatically connect to my hotspot wireless phone connection? This way I can manage my trading account before the computer shuts down.
You can use the WLAN Manager PowerShell script if during a power outage, your Ethernet connection status changes to disconnected. But in this case, your phone hotspot should be turned on constantly.
Can someone give a more in depth guide as to how to setup WLAN ? Some of the terminology is confusing…
I think the first script creates a scheduled task, the second is used as an action , but what is the trigger, need some help,please
Hi Steve, the Trigger is the Event ID in the Eventlog
(Event-ID: 32 — Network link is established) and (Event-ID: 27 – Network link is disconnected)
Hi , The script installed fine on my laptop but noticed an issue after installing it, if the user is in VPN (working from home) then the schedule task keeps on disconnecting the system from the WiFi network, by any chance would it be possible to include a VPN check so that when the user is connected to VPN from home the network stays connected.
Good day, thank you for this tip. May I know if Wi-Fi is automatically disabled because Ethernet is active, won’t this affect the Hotspot option as it needs to share Ethernet internet via Wi-Fi?