

To automatically enable or disable the WLAN adapter, you can write your own script and make it trigger at the event of the link appearing on the wired LAN interface ( Event-ID: 32 - Network link is established) and ( Event-ID: 27 – Network link is disconnected) using event triggers, but there is a ready solution for PowerShell. Use PowerShell to Disable Wi-Fi when an Ethernet Connection Exists If you don’t have one, the automatic switch to Ethernet connection can still be implemented using a PowerShell script. This option is not supported on all models of Wi-Fi card drivers. 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).

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 manufacturer). Thus, the battery resource is saved and the wireless Wi-Fi network load is reduced. If while using a Wi-Fi network, a higher priority Ethernet connection appears on a device, the Wi-Fi adapter should automatically go into the standby mode. This technology suggests that on a user computer only one network adapter can simultaneously transmit data. Many computer vendors have their own implementations of the LAN/WLAN Switching technology (they can be named differently).
