Easier Way to Log Off and Lock Your Computer
To log off from the session that you are currently logged in, normally you will go to Start and click on “Log Off Username”. It is pretty straight forward. However, if you still think it is a bit hassle and irritated to click here and there, well, you can create your own shortcut in order to log off and lock your desktop in a faster way.
To create a log off shortcut, just make a right click on any empty spot on your desktop. Point your mouse to “New” and click “Shortcut”.

A dialog box will be appeared. Just type in “rundll32 user32.dll,LockWorkStation” and click “Next” to continue.

Last, key in a name for this shortcut, e.g. Log Off ShortCut. Click finish to complete the task.

Related posts:
- Create and Put an Elevated Command Prompt on Windows Vista Desktop or Start Menu
- Restart or Shutdown Windows (XP, 2000 and Vista) from Command Line or One-Click Shortcut
- Easier Way to Take Ownership and Grant Access Files or Directories in Vista
- Crack and Hack to Recover Combination Lock or Master Lock Combination Instructions
- Connect to Remote Computer using Specific Non Standard Port using Remote Desktop Connection Client





you may try clear lock desktop locker it is better than log off ……. Log off need more time …. clear lock prevents unauthorized access with password clear lock link – http://digipool.blogspot.com/2012/01/clear-lock-transparent-desktop-locker.html
Window+L switches users, not logs off.
Or you could just use windows button + L >.>
spent battery power or let user to change?
is the best solution in remote desktop also, or if you usse VNC.
You tell 'em Kev. ALso, you better be right as I'm gonna test your method now…
The correct and shorter why to create these shortcuts is as follows: make a new shortcut in on the desk top…and in the first field..type this. For Shut down…."shutdown -s -t 00 and for restart….."shutdown -r -t 00 and for log off…."shutdown -L 00"….and they will work perfectly..there is no need for those long and drawn out commands.
to restart shortcut:
C:WINDOWSsystem32shutdown.exe -r -t 05 -c "Rebooting…"
to shutdown:
C:WINDOWSsystem32shutdown.exe -s -t 05 -c "Rebooting…"
see "C:WINDOWSsystem32shutdown.exe –help" for more info
Locking the workstation is not logging off you computer. It simply locks you workstation. To log off, so you can do a complete user log on again, or another user can, you need to, well, log off, not lock your workstation.
There is a more simple and faster way to log off: just press windows key+L
How can I make a restart/shutdown shortcut?