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.