This article provides the information on "Configuring your wireless card to disable when connected to a wired network connection in Windows 8.1 and Windows 10".
Disabling Wireless (Wi-Fi Only) When Connected to Wired Connections
You may encounter situations when a Windows 8.1 or Windows 10 system user wants to ensure that the wireless network connection is disabled when wired network connection is available. (Normally when a portable system is docked.)
Many find this is desirable as many WLAN network connections are slower data performance.
The instructions below show how to configure Windows Task Scheduler to disable the wireless network connection when a wired connection is detected.
Follow the steps listed below to configure Windows Task Scheduler your system to automatically switch to the wired network connection when detected.
- In the Search Box type: Services.msc This should open the Services Window depicting all the Local Services running on the system. Enable Wired-Autoconfig Service (change to Automatic) (Figure 1):
- Open Event Viewer (Right click the start button, select Event Viewer from the menu) and you will see in system events: Event 15500 shows the network cable has been unplugged from dock (Figure 2):
NOTE: The following items involve editing events in Task Scheduler. See https://technet.microsoft.com/en-us/library/cc766442.aspx for more information on editing tasks.
- Event 15500 runs powershell to Enable Wi-Fi (WiFI On Properties) (Figure 3):
"Enable-NetAdapter –Name ‘Wi-Fi’ –confirm:$False
- Event 15501 shows network adapter has been plugged in (Figure 4):
- Event 15501 runs PowerShell to disable Wi-Fi (Figure 5).
"Disable-NetAdapter –Name ‘Wi-Fi’ –confirm:$False
- On on the CONDITIONS TAB editing both events be sure to uncheck AC power (Figure 6):
- The following examples show how to make Network Switching work in Windows 8.1 on a Latitude xx50 system using PowerShell:
a. Wi-Fi Enable upon Ethernet disconnect (Figure 7):
b. Wi-Fi Disable upon Ethernet connect (Figure 8):
- Minor adjustments required due to the docking and undocking nature of the system:
- "Wifi off" should be triggered by event 15510 (Device was added to system, not plugged in)
- "Wifi on" should be triggered by event 15513 (Device was removed from system, not unplugged)
- There should be a total of four Tasks scheduled:
- Undock Tablet (Adapter removed) 15513 Enable Wifi
- Unplug Ethernet (Cable unplugged) 15500 Enable Wifi
- Dock Tablet (Adapter added) 15510 Disable Wifi
- Plug In Ethernet (Cable plugged in) 15501 Disable Wifi