Avoid lock on Remote Desktop Session when I lock the own machine

remote desktop

I am working at Computer A and starting a non-fullscreen Microsoft RDP session to computer B (both Windows 10 Pro). When I take a break I press Win+L on Computer A and lock my session. When I return I need to log back into both machines: The Lock gets forwarded to computer B. This also happens when:

  • I target another application on Computer A before locking
  • I lock using the Start Menu -> Profile icon -> Lock Session, not the key combination
  • When I use Devolution's Remote Desktop Manager (where I can access a lot more options)

It doesn't happen when:

  • I don't lock Computer A when taking a break (that is: It's not a timeout thing)

I was wondering if there was a way to avoid this Lock to be forwarded. Regardless of whether I SHOULD, I am not looking for WHY Windows does this (but you are free, of course, to still explain, it's the Internet, I can't stop you 🙂 )

Best Answer

One way to stop this behaviour is to disable the lock option of computer B. Won't avoid the lock to be forwarded, but it will not take effect on the remote computer. If it fits for you, here's how it's done:

Run regedit and navigate to the following key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System (if you don't have the System key, right click and create it).

When in the System key, on the right side of the window, right click > new > DWORD and name it DisableLockWorkstation.

Now right click DisableLockWorkstation and change the Value Data to 1. You're done! You might need to restart the computer once before it works (although mine didn't need to).

Font: How to Disable the Lock Screen Shortcut Key (Win + L) in Windows