Windows – Wifi disconnects immediately after login from remote desktop session in Windows 10

remote desktopwindows 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.

Best Answer

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. :)