Tip 12: Shortcuts to quickly Lock the Desktop or Suspend the Computer

You can quickly lock the console without having to use CTRL+ALT+DEL or a screensaver.

To do this, create a shortcut with the following command line:

    rundll32.exe user32.dll,LockWorkStation
Then, simply double-click the shortcut to lock the console.

Note: LockWorkStation is case-sensitive.!

Alternatively you can create a shortcut on the Quick Launch bar to quickly execute this command by performing the following steps:

  1. Start Windows Explorer.
  2. Navigate to \%userprofile%\application data\microsoft\internet explorer\quick launch
    (e.g., C:\documents and settings\bob\application data\microsoft\internet explorer\quick launch).
  3. Right-click in the right-hand pane and select New, Shortcut.
  4. Enter "rundll32.exe user32.dll,LockWorkStation" without the quotes, and click Next.
  5. Name the shortcut "Lock Workstation" and click Finish.

In order to Suspend the computer in a similar way, create a shortcut with the following command line:

    rundll32.exe PowrProf.dll,SetSuspendState

Works with Windows 2000 and higher.