How to Pass Windows key + L combination in remote desktop (MSTSC or RDP)?

1

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 ?

Sumeet

Posted 2019-08-14T11:56:35.350

Reputation: 11

2

Possible answers can be found here:

– NiallUK – 2019-08-14T12:13:01.660

1What is the practical difference between locking and disconnecting? – user1686 – 2019-08-14T12:15:17.403

@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 – 2019-08-14T12:27:19.450

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 – 2019-08-14T17:39:08.310

Answers

0

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

Dado

Posted 2019-08-14T11:56:35.350

Reputation: 21

0

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.

Sumeet

Posted 2019-08-14T11:56:35.350

Reputation: 11