Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I could lock my Windows XP workstation using CTRL+ALT+DEL, K. That keystroke combination does not work on Windows 7. Is there a method of locking Windows 7 using just keystrokes?

share|improve this question
4  
This is a great question and should not have been down voted. +1 from me. –  Chris K Mar 19 '13 at 20:20
3  
It's a nice question, I was going to down-vote it for lack of research, but Google seems to be pretty bad at finding a site that will tell you this straight out. Upvoted instead. –  David Mar 19 '13 at 20:29
add comment

4 Answers

up vote 121 down vote accepted

Windows key+L should do what you need.

share|improve this answer
48  
It's worth mentioning that this isn't a new shortcut to Windows 7... it has been around since at least the XP days. Check out the "Windows key" Wikipedia page for other useful shortucts that use this key: en.wikipedia.org/wiki/Windows_key –  Jesse Webb Mar 19 '13 at 22:43
9  
My habit: try every Windows key + letter combination and see what they do whenever a new Windows version is released. –  Alvin Wong Mar 20 '13 at 6:03
5  
@Alvin and not only letter: the win+arrowkey have nice features too. –  Konerak Mar 20 '13 at 7:01
2  
@AlvinWong , you can also check here or here for Win8 for a complete list, or in the Windows manual (printed or online). Should be easier than trying. –  Jcl Mar 20 '13 at 7:38
3  
On an unrelated note, how awesome are <kbd> tags? –  twome Mar 20 '13 at 8:59
show 5 more comments

Use Windows+L. If you use AutoHotKey you can reprogram Windows+L to do other things too, like lock your session, and also wait 10 seconds and put monitors to sleep. Powerful little hotkey program.

share|improve this answer
add comment

Also, Ctrl+Alt+Del, Enter   and   Ctrl+Alt+Del, Alt+K seem to work for me.

share|improve this answer
1  
Ctrl-Alt-Del Enter is the way. This has worked across various versions of Windows for a long time, since the default button on the Ctrl-Alt-Del screen is "Lock this computer". –  Kaz Mar 20 '13 at 1:35
2  
Also Space instead of Enter works as well, since it's the default highlighted item. –  Viper_Sb Mar 20 '13 at 5:22
4  
Wouldn't Ctrl+Alt+Del Alt+K depend on one's installed/selected language variant, though? –  Michael Kjörling Mar 20 '13 at 12:03
    
@MichaelKjörling: (1) Good point. I hadn’t consciously considered that. You are probably right. (2) I’ll fall back on @Kaz and @Viper’s suggestions that (Enter) and (Space) are the universal answers. (3) Since the OP said that K worked for him on Windows XP, I believe that it’s quite likely that he is an English user. –  Scott Mar 21 '13 at 0:42
    
@Kaz: and Windows+L hasn't worked for a long time across Windows versions? Don't remember about Windows 2000, but at least since XP this worked fine. –  0xC0000022L Mar 21 '13 at 2:43
show 3 more comments

You can even use a simple batch file. Just double click on it & your PC will get locked. Just copy & paste the below code in to Notepad & save it as (for example) "lock.bat". That's it - you're done, just double click on it.

The code is:

@echo off
rundll32.exe user32.dll, LockWorkStation
cls
share|improve this answer
10  
This is over-involved and doesn't answer the question. –  Dane Mar 20 '13 at 13:05
3  
Also, you really shouldn't use rundll32 on things that weren't made for rundll32 (and those are deprecated since Vista) See also: blogs.msdn.com/b/oldnewthing/archive/2004/01/15/58973.aspx (Sadly down at the moment) –  3Doubloons Mar 20 '13 at 13:41
    
@AlexBrault Working fine for me now. –  Michael Kjörling Mar 20 '13 at 14:56
    
If you put this file on your Desktop and assign a Shortcut key (combination) to it, then that keystroke combination will lock the workstation. It must be Ctrl+Alt+(something) or Ctrl+Shift+Alt+(something). You might need to logout and login again before it becomes effective. –  Scott Mar 21 '13 at 0:50
add comment

Your Answer

 
discard

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.