Re-assign/override hotkey (Win + L) to lock windows

前端 未结 6 1082
悲&欢浪女
悲&欢浪女 2020-12-08 15:04

Is it possible to re-assign the Win+L hotkey to another executable/shortcut?

Use-case - I would like to switch off the monitor of my laptop as

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-08 15:29

    The @FrancoisB method works for Win8 and Win7. To automate the solution:

    1. Create a text file with the .reg suffix (DisableWinL.reg, for example)

    2. Paste the following content and save the file:

      [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
      "DisableLockWorkstation"=dword:00000001
      
    3. Open that file with RegEdit (double-click should work) to execute the change.

      This file can be copied to a new machine to repeat the process. And another one named something like "EnableWinL.reg" could be created that re-enables the Win+L key:

      [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
      "DisableLockWorkstation"=dword:00000000
      

提交回复
热议问题