Some useful Windows Terminals commands
All colleagues must log into the Windows terminals to do their jobs in my new corporation. There are only several servers and all colleagues work on them, so sometimes we will be kicked out of the server. It always makes us depressed. And sometimes when I re-log into the server, I can't start Lotus Notes. Because the application is running, though I have been kicked out.
I have encountered this kind of situation several times, so I want to find a way to resolve it. With google I find several useful windows command which I did not familiarize.
msg.exe: Send a message to a user local or remote. This is command is used frequently.
msg username [/SERVER:servername] message
Send message to username on servernameqprocess.exe: Display information about processes local or remote = query process
qprocess username [/SERVER:servername]
Display all processes beloned to username on servernamequery.exe: Query TERMSERVER user process and sessions
quser.exe: Display information about a user logged on = query user
tsdiscon.exe: Disconnect a user from a terminal session
TSDISCON [sessionid | sessionname] [/SERVER:servername] [/V]tskill.exe: Kill a Terminal server process
TSKILL processid | processname [/SERVER:servername] [/ID:sessionid | /A] [/V]logoff.exe: Log user off
LOGOFF [sessionname | sessionid] [/SERVER:servername] [/V]
All the commands have an optional parameter: /SERVER:servername. It is useful to operate other server.
Posted by Sky at 11:04 PM | Permalink | comments(1) | Edit | OS
Comments
windows也玩的那么炫,不过还是linux好玩,已经习惯了windows的傻瓜化,tskill.exe这个命令上次还用过^_^
Commented by Flavian.Chen | May 27, 2007 10:45 PM