Original link http://bbs.blueidea.com/thread-965603-1-1.html
In windwos, the DOS command line logout is:
Shutdown-l
Or logoff usage: shutdown [-I |-L |-S |-r |-A] [-F] [-M // computername
] [-T xx] [-
Mment "] [-D up: XX: yy] No parameter to display this message (? Same)
-I: displays the GUI, which must be the first option.
-L logout (cannot be used with option-m)
-S: disable this computer
-R: Disable and restart this computer
-A discard system shutdown
-M // computername
Remote Computer shutdown/restart/discard
-T xx: Set the timeout value to XX seconds.
-C "comment" Close comments (127 characters at most)
-F: an application that runs forcibly Program Close without warning
-D [u] [p]: XX: Why YY is disabled Code
U is the user code
P is the code to close a plan.
XX is a major cause code (a positive integer smaller than 256)
YY is a secondary cause code (a positive integer smaller than 65536) logoff [sessionname | sessionid] [/Server: servername] [/V] sessionname session name.
Sessionid session ID.
/Server: servername indicates the user session to be logged out.
Terminal Server (the default value is the current server ).
/V displays information about the executed operations.