In Windows XP or later, How do I make a Desktop Shortcut to Logoff User?
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
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).