how do i lock remote desktop screen (RDP or MSTSC) ?. Is there any shortcut key for lock screen in remote desktop. For example in local desktop if we press Windows key + L key combination it locks the local client computer, is there any equivalent version of key combination in RDP ?

  • 2
    Possible answers can be found here:
    – NiallUK
    Aug 14, 2019 at 12:13
  • 1
    What is the practical difference between locking and disconnecting?
    – user1686
    Aug 14, 2019 at 12:15
  • @NiallJones we have ctrl + alt + end(Remote Desktop) for windows security which is equivalent to ctrl + alt + del in Local client. Is there any shortcut key instead of run32.exe user32.dll and LockWorkstation combination? Thanks for the reply.
    – Sumeet
    Aug 14, 2019 at 12:27
  • 1
    @Sumeet - Are you connecting to the remote desktop in window or full screen mode?. If it's full screen mode just select the appropriate option and the standard shortcut will work.
    – Ramhound
    Aug 14, 2019 at 17:39

3 Answers 3


Cntrl + Alt + End will bring up the same screen that Cntrl+Alt+Del does on the home machine. Just select lock and your remote session is locked.


you could create a shortcut somewhere on the remote machine (i.e. on the desktop) that points to "rundll32.exe user32.dll,LockWorkStation" and in the option fill the "Shortcut Key" with something like CTRL-ALT-L, it will lock the session


I figured it out. I wrote an keyboard filter driver which will send the keys depending on the session handle. One key thing i noticed was when the virtual or on-screen keyboard is toggled on, and if you pass Win + any key(Virtual key) + L it only locks RDP or remote session. So i have written a keyboard filter driver which will send in the scan code along with the Win and L key.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.