Wifi disconnects immediately after login from remote desktop session in Windows 10
I have a Thinkpad T430s running a fresh install of Windows 10 Pro (Build 10.0.14393), and it has an issue with inbound remote desktop sessions that causes the wifi connection to be dropped as soon as the remote desktop logs in, resulting in the termination of the remote session.
Observations:
- Sometimes I can see the lock screen rendered on the remote desktop for a split second before it freezes, presumably due to wifi connection loss.
- If I'm logged in locally at the laptop, and then try to login with the same user remotely, the local login will be booted out to the lock screen. This behaviour is as I would expect.
- When the remote desktop session freezes after login, I can see on the lock screen locally that there is no wifi connection (as shown by the wifi icon). Reconnection does not occur automatically here on the lock screen.
- Wifi connection is automatically re-established after I log in locally.
- If I remove the wifi hotspot from config (either through "netsh wlan delete profile name=" or through "Forget" in the UI), add the hotspot back and connect, log in remotely without first logging out locally, then the remote session will connect successfully.
- If I reboot the laptop after doing the step described above, then the problem returns.
What I've tried:
- Updated to latest WLAN driver.
- Installed all Windows updates.
- Disabled the option to "Allow the computer to turn off this device to save power" for the WLAN device.
The user I'm trying to log in as is a local, non-domain user. Wifi hotspot is secured with WPA2-Enterprise and EAP-MSCHAPv2.
Solution 1:
OK, this is an old thread, but it might be useful for some with this issue.
If you want your wifi connection to be configured for "all users" you can export it from your profile, and then reimport it for all users.
Open an elevated command prompt. (hit windows key, type cmd, then press Ctrl+Shift+Enter) to see what profiles are on remembered on the system, use the command
> netsh wlan show profiles
then, copy the name of the profile you want to make for all users, (drag the mouse over the text and hit enter to put it in the clipboard)
Now, export the WiFi profile with:
> netsh wlan export profile name="your copied Wifi Network name" folder="C:\path\" key=clear
After that, add it to all users:
> netsh wlan add profile filename="full path of .xml file" user=all
That should do it. :)
Solution 2:
I had the same problem and not solved it, but found a workaround. I sincerely hope this problem will be solved.
Workaround, similar to yours:
- When logged in, disconnect wifi.
- Lock the machine
- On the lock screen, click the wifi icon in the lower right corner.
- Provide credentials.
- If the connection is established, the remote desktop works as expected.
That tells me that the problem is not the drivers, rdp/port mapping or the authentication. It's to do with how the credentials are shared in the windows "multi-user" environment. If my memory serves me correctly, in previous versions of windows there was an option to automatically connect wifi on lock screen. However with "newer-is-always-better" update of the interface, I can't seem to find this option and I doubt it will have found it's place in the reworked UI. So possible a register hack will solve this, however windows-fu reghacking skills elude me.