Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Auto switching Wifi off when LAN is connected

09 Jun 2015   #1

Windows 7 Enterprise
Auto switching Wifi off when LAN is connected

I've been having a ongoing problem with Windows 7 not prioritizing LAN when Wifi is switched on. Switching Wifi off isnt an option (talking 50-100 laptop users) and will be an inconvenience to them.

The issue around this is that when on Wifi it doesn't seem to ask them to change their AD password on login when it has expired (often they don't even get the prior notifications).

I have tested both on Wifi and LAN and can confirm they do get the prompts as expected when on the LAN.

I've read and tried the 'matrix interface' suggestion and it didnt apear to work. The numbers changed (LAN lower than Wifi) but it still shows the Wifi icon. I have no doubt it is using both and I tested this copying a large file and it seems to utilize both.

However I want to not even have Wifi enabled but to be enabled/disabled by some sort of app. Im happy to pay for a trial of one if one exists.

Can you help please?

My System SpecsSystem Spec
10 Jun 2015   #2

Windows 7 Enterprise

My System SpecsSystem Spec
13 Jun 2015   #3

Microsoft Windows 8.1 Professional 64bit

Hi. Sorry my english is not good and I must use GoogleTranslator
I search script for 20 laptop users for automatic enabled/disabled Wi-fi/LAN adapters over other types laptops and manufacturers. All over the Internet was a bit shit. Notebook users connect simultaneously to the wi-fi and lan until the damaged user profile, or lost data. At first I handled this situation so that I've windows in wifi adapter drivers entered user MAC same as the MAC LAN adapter. Desperate solutions although the basic problem to solve.
Over the next two years, I have tried a few scripts but again unusable. Until recently, I finally discovered a powershell script that is brilliantly simple. Thanks to a script I put together a solution that could help you, even if not perfect. But it will help you out of hell :))

1. Open all 32bit and 64bit powershell and powershell ISE at Windows and run as Administrator.
In each window type "set-executionpolicy RemoteSigned" and press Enter, then press Y and press Enter
Total for 4 powershells will agree change to allow run unsigned scripts.

2. unzip attachment and copy in windows explorer LANorWi.ps1 to C:\Windows\ Not use copy at Totallcommander!!!
After copying check whether the file properties in the security file is not necessary to unblock.
Do not copy the file in TotalCommander! Copying a file in Windows assigns the necessary permissions. It works in the domain.

3. In script replacements "wi-fi" string that is repeated in the name of wi-fi adapters for your laptops. I do the same thing with the text "ethernet".

4.XML file according to the version of Windows you use a new task in the Scheduler. Depending on what your security policy to specify how it will run. No need admin, works no problem for login user.

5. Sheduler event starts on connecting and disconnecting the network. ID suspect in 1000 or 1100 system. Test starts task on events. If it works one of the adapters will be disabled and then it will rotate by connecting and disconnecting the LAN cable.

6. It's so simple :)) And it works everywhere :)) Happy Hour!!!!

Good Luck.

Attached Files
File Type: zip LANtoWifi by (3.6 KB, 19 views)
My System SpecsSystem Spec

13 Jun 2015   #4

Microsoft Windows 8.1 Professional 64bit

To connect or disconnect the network profile is EventID = 10000 and EventID = 10,001th
You can find it in the xml file.
My solution is probably not exactly what you are looking for, because do not want to disable wifi. Google translator to translate your text Czech worse than him I understood in English :)
Perhaps I did not write it with nothing.
My System SpecsSystem Spec
19 Oct 2015   #5

Windows 7 Enterprise

This is no longer an issue for me now, thank for all replies.
My System SpecsSystem Spec
19 Oct 2015   #6

Windows 7 Ultimate x64 SP1

Can you share with the rest how you solved it please?
My System SpecsSystem Spec
19 Oct 2015   #7

Windows 7 Enterprise

Its not fixed but i just wanted to close the topic.
My System SpecsSystem Spec

 Auto switching Wifi off when LAN is connected

Thread Tools

Similar help and support threads
Thread Forum
switching from wifi 1 to wifi 2 doesnot assign proper ip address
hi i have two wifi networks, wifi 1 >> is on 192.168.1.x ip scheme and windows connects to it fine, wifi 2 >> is on 192.168.43.x ip scheme and when i disconnect from wifi 1 to connect to wifi 2, windows still shows old ip scheme of 192.168.1.x ip address and i cannot connect to wifi 2...
Network & Sharing
wifi signal bars not showing but connected to wifi
hello, iam using windows 7 professional 32 bit. my laptop is hp elitebook 2560. my laptop is capturing signal, i am able to connect to internet also. But in wifi icon,on wifi bar cross mark is showing up.
Network & Sharing
Windows auto switching
Why is it that if I am typing in a window, then open another application and then go back to typing in that window and then it will auto switch to the application that I set to open. I don't want it doing this and wonder if it can be stopped. For example I am typing in this form and then...
General Discussion
switching between two wifi network, how to manage them
i have two wifi network one at home, other at office........ one at home and other at office, how can i switch between these two without changing the gateway and DNS settings
Network & Sharing
Using subdirectories with Desktop Auto Switching
I have a directory with many subdirectories of pictures I have taken over the years. I want to use these pictures as Desktop Backgrounds using the auto-switcher. It seems the Auto-switcher does not have an option for using subdirectories in this setup. I found a hint that the "workaround"...

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 22:32.
Twitter Facebook Google+