Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Microsoft Natural Ergonomic Keyboard 4000, which has five "My Favorites" buttons along the top-center which can be programmed. Using IntelliType Pro (software downloaded from Microsoft), I'd like to set up one of these buttons to perform a "Win+L" to lock my computer.

I know I did this at a past job, but unfortunately I've forgotten how to specify this keypress. Can anyone provide advice?

share|improve this question
up vote 8 down vote accepted

Use this command:

rundll32.exe user32.dll, LockWorkStation

That should do it.

share|improve this answer
That worked, thanks! – Adam V Nov 11 '09 at 13:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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