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
Update:
I had originally said to use .bat, but the other Kyle (Smith) pointed out that this loads the DOS emulator, so it is slower.
I'd say it's quite possible that MS don't provide programmatic access to logoff (at least outside of tools like shutdown.exe), and also possible that the reason why is a very good one (potential for abuse, and you can just guarantee that someone somewhere will somehow manage to put it in their Startup Program Group).
I think you could put the following in a cmd file and put that on the desktop (text file with .cmd extension):
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
Update:
I had originally said to use .bat, but the other Kyle (Smith) pointed out that this loads the DOS emulator, so it is slower.
I'd say it's quite possible that MS don't provide programmatic access to logoff (at least outside of tools like shutdown.exe), and also possible that the reason why is a very good one (potential for abuse, and you can just guarantee that someone somewhere will somehow manage to put it in their Startup Program Group).