Windows コンピュータをロックするショートカットの作り方

Here's how to create a quick lock app on your taskbar
ロックするショートカットをクイック起動に設定する方法

  1. Right click on your deksotp and select New, Shortcut
  2. Paste this text in - rundll32.exe user32.dll,LockWorkStation
  3. Click next and type a name for the shortcut (e.g. Lock)
  4. Click finish
  5. You can right click on your new shortcut and change the icon (there is a lock icon as part of the collection in %SystemRoot%\system32\SHELL32.dll)
  6. Now drag the icon to your taskbar

Windowsキー+Lキーで同じ効果なわけですがw
個人的にヒットだったのでメモ。
特に、

  • アイコンを変更するときにSHELL32.dllを指定するといい
  • これならコマンドでもWindowsをロックすることもできるよね

なんてところが。