There are two Microsoft "Logoff.exe" commands available.
(You can probably find others by searching software download
sites.)
Logoff.exe in %SystemRoot%\System32 is likely from Terminal
Server and only logs of terminal server users -- it's about 16 KB
Logoff from the Resource Kit (might be downloadable from MS
Win2000 downloads) does this for the current user. It's about 62 KB.
In both cases it is safe to request help by typing: Logoff /?
Likely there is a built in way by using RunDLL32 or something...we
can await another response from someone who knows....