Windows 7 / 2008 / 2003 / XP – How to make a Desktop Shortcut to Logoff User


In Windows XP or later, How do I make a Desktop Shortcut to Logoff User?

Best Answer

I think you could put the following in a cmd file and put that on the desktop (text file with .cmd extension):

shutdown -l

You can type shutdown in the command prompt for other arguments to shutdown to do other things ( like actually shutdown, would be -s ).

If you want to give it the log off icon, copy and then do 'Paste shortcut' and you can then select change icon from the properties. There is the shutdown icon in %SystemRoot%\system32\SHELL32.dll

I had originally said to use .bat, but the other Kyle (Smith) pointed out that this loads the DOS emulator, so it is slower.