How to lock a remote desktop session.

Friday, September 14th, 2012

An annoying little ritual we must all follow is the periodic password change. I had to change mine and I had a remote desktop session which of course wanted a session lock and password entry to update the credentials.

To lock a local session, you simply enter: windows+L

It works great with local sessions but it does nothing for remote desktop sessions.

For remote desktop; you can enter:  CTRL+ALT+INS but this may not work as it requires you to configure remote desktop for it to work.

* Open the Remote Desktop Connection utility and click Options.
* Open the Local Resources tab
* Change the value for Apply Windows key combinations option under 
  Keyboard to On the remote computer.
* This will send all key combinations to the remote desktop connection; 
  including Ctrl-Alt-Ins.

There is one more way which doesn’t require configuration changes.

Simply, enter: rundll32 user32.dll,LockWorkStation

After that a quick unlock and the credentials are updated.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: