8

I know I can lock windows (in particular I'm using windows 10) via the keyboard with Win+L. However, if I don't have a keyboard attached is there a way to lock the session with just the mouse?

I know I can sign out by right-clicking the start menu and choosing Shut down or Sign out but I just want to lock it.

1

3 Answers 3

13

Click Start, then click your username/picture at the top and select Lock from the menu. This also works on Windows 8.1.

enter image description here

You may have to enable this menu item from your power settings:

  1. Click Start, then Settings
  2. In the window that opens, click System, then select Power & sleep from the menu to the left
  3. Click Additional power settings
  4. Click Choose what the power button does from the menu to the left
  5. Click Change settings that are currently unavailable
  6. Check the checkbox that says Lock - Show in account picture menu at the bottom
  7. Click Save changes.

enter image description here

3
  • I think this is probably the way to go ;)
    – Jonno
    Jan 24, 2016 at 15:57
  • and how do you type something if you have no keyboard? Did you read the question?
    – Aganju
    Jan 24, 2016 at 16:02
  • My bad - answer edited. Jan 24, 2016 at 16:05
2

You can create a shortcut to the following command:

rundll32.exe user32.dll,LockWorkStation

This will return you to the same screen as Win+L

EDIT: As noted by @BenN - Use the command tsdiscon instead as rundll32 has been depreciated.

2
  • This is pretty good although I'm still interested in an answer that wouldn't require setting something up in advance
    – User
    Jan 24, 2016 at 15:52
  • Danger! rundll32.exe is deprecated and very full of pitfalls. Use tsdiscon to accomplish this task.
    – Ben N
    Jan 24, 2016 at 16:30
1

Just found another way to do this (in Windows 10 at least). Not ideal but does physically work:

Click Start Menu -> Settings -> Ease of Access -> Keyboard and turn on the On-Screen keyboard and then click Window Key followed by the L key.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .