Group policy to disable WiFi connection upon connecting ethernet connection

Jim Ryan 1 Reputation point
2021-04-23T19:55:07.653+00:00

I am plagued with "BAD ADDRESS" entries chewing up my dhcp scope then people cannot connect. I have determined after reviewing the logs and looking at the offending machines they both had one thing in common. Both wired and wireless connections were active. They would connect on the WiFi then go back to their desk an dock it. At that point both wireless and wired start trying to get addresses.

Anyway, I want to create/enable a group policy to prevent this from happening but still allow either one or the other to work at any given time as users will dock/undock many times during the day for meetings etc.

Thanks for any ideas

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
{count} votes

5 answers

Sort by: Most helpful
  1. Anonymous
    2021-04-26T02:58:28.637+00:00

    Hi,

    Please check if the following article can help with you:

    How to Automatically Turn Off Wi-Fi When an Ethernet Cable is Connected?

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    1.Use PowerShell to Disable Wi-Fi when an Ethernet Connection Exists:

    The script regularly checks for active network adapters. If the script detects any LAN (Ethernet) connection, WLAN interface is automatically disabled. If the Ethernet network cable is disconnected, the script enables the wireless Wi-Fi adapter.

    2.GPO to Disable Non-Domain Wireless Networks When Connected to LAN:

    Enable the policy of Prohibit connection to non-domain networks when connected to domain authenticated network.

    Best Regards,
    Candy


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

  2. Anonymous
    2021-04-23T21:12:11.993+00:00

    Really should not be a big deal. Both wired and wireless would have their own unique MAC address. Some laptop manufacturers have either a cmos setup or software /driver solution to control connection of one or the other. May also need to shorten up the lease time and or a little IT training for the users if the laptops cannot be configured.

    (typical Dell documentation: The WLAN or WWAN adapter is disabled at the BIOS (Basic Input Output System) level when a network cable is plugged in. There are no controls within Windows that will enable the adapter until the network cable is unplugged. Intel wireless adapters may report that the radio switch is turned off even when the switch is physically in the on position.)
    https://www.dell.com/support/kbdoc/en-us/000137415/how-to-disable-wireless-when-connected-via-wired-connection-on-latitude-and-precision-mobile-workstations

    --please don't forget to Accept as answer if the reply is helpful--


  3. Anonymous
    2021-04-23T22:00:57.327+00:00

    You may be able to custom script something but the simpler option may be the hardware / driver software configuration.

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  4. Anonymous
    2021-04-29T13:01:55.097+00:00

    Any progress or updates?

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  5. Squuiid 0 Reputation points
    2025-03-28T09:39:28.5866667+00:00

    Minimize the number of simultaneous connections to the Internet or a Windows Domain under Computer Configuration -> Administrative Templates -> Network -> Windows Connection Manager. Enable the policy and select 3=Prevent Wi-Fi when on Ethernet.Screenshot 2025-03-28 at 09.37.45

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.