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 ?
43 Answers
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.