How to Disable a Wireless Network Connection When a Wired Connection is Detected

Summary: Steps for making your wireless network connection turn off when you connected a wired network connection.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

Disabling Wireless (Wi-Fi Only) When Connected to Wired Connections

Note: The following information has not been verified for virtual networks. There is no current ETA for testing with virtual networks and this solution.

Windows 10 users may want to have their system wireless network connection to turn off when a wired network connection is available. (When a laptop 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.


Configuration

Follow the steps listed below to configure the Windows Task Scheduler your system to automatically switch to the wired network connection when detected.

  1. 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):
    Windows Wired AutoConfig Properties Menu
  2. Open Event Viewer (Right-click the Start button, select Event Viewer from the menu) and in system events: Event 15500 shows that the network cable has been unplugged from the dock:
    Windows Event Viewer
    Note: The following items involve editing events in the Task Scheduler. See https://technet.microsoft.com/en-us/library/cc766442.aspx This hyperlink is taking you to a website outside of Dell Technologies. for more information about editing tasks.
  3. Event 15500 runs PowerShell to Enable Wi-Fi (WiFi On Properties):
    Windows PowerShell
    "Enable-NetAdapter –Name ‘Wi-Fi’ –confirm:$False
  4. Event 15501 shows that the network adapter has been plugged in:
    Windows Event Viewer
  5. Event 15501 runs PowerShell to disable Wi-Fi.
    Windows PowerShell
    "Disable-NetAdapter –Name ‘Wi-Fi’ –confirm:$False
  6. On on the CONDITIONS TAB editing both events be sure to uncheck AC power:
    Windows PowerShell, Conditions Tab
  7. The following examples show how to make Network Switching work in Windows on a Latitude xx50 system using PowerShell:
    A. Wi-Fi Enable upon Ethernet disconnect:
    Windows PowerShell Example 1
    B. Wi-Fi Disable upon Ethernet connect:
    Windows PowerShell Example 2
  8. Minor adjustments required due to the docking and undocking nature of the system:
  9. "Wi-fi off" should be triggered by event 15510 (Device was added to the system, not plugged in)
  10. "Wi-fi on" should be triggered by event 15513 (Device was removed from system, not unplugged)
  11. There should be four Tasks that are scheduled:
    • Undock Tablet (Adapter removed) 15513 Enable Wi-fi
    • Unplug Ethernet (Cable unplugged) 15500 Enable Wi-fi
    • Dock Tablet (Adapter added) 15510 Disable Wi-fi
    • Plug In Ethernet (Cable plugged in) 15501 Disable Wi-fi

Affected Products

G Series, Alienware, Dell Laptops, Dell Plus, Dell Pro, Dell Pro Max, Dell Pro Plus, Dell Pro Premium, Inspiron, Latitude, Dell Pro Rugged, Vostro, XPS, Mobile Workstations, Dell Pro Max 16 XE MC16250
Article Properties
Article Number: 000111968
Article Type: How To
Last Modified: 22 Jul 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.