Some of my coworkers have an annoying habit of remoting into our Win2k servers and never logging out. They also like to do this in pairs, which means nobody else can remote into the machines due to Microsoft's default two-user administrative mode Terminal Services limit. Yeah, I could rclient in, or use remote MMC snap-ins, but sometimes it's just faster to manipulate the GUI via Remote Desktop.
There's a tool to remotely manage remote desktop connections in Win2k, but I couldn't find any equivalent in XP. A little searching turned up Microsoft's Windows Server 2003 Administration Tools Pack which provides server management tools that allow administrators to remotely manage Windows 2000 Servers & Windows Server 2003 family servers. And indeed it does! The kit installs the following tools, which appear under the Start, Programs, Administrative Tools menu:
All this for the low, low price of nothing. The only part I care about is the Terminal Services Manager, which lets me terminate idle remote desktop sessions from target servers. Take that coworkers!
You could also fire up the ts client using "mstsc /console" and kick them off that way. ;)
Kurt on February 26, 2005 9:17 AMYou could disconnect them from a command prompt with tsdiscon:
tsdiscon 1 /server:fabrikam
Or reset their session with rwinsta:
rwinsta 1 /server:fabrikam
If you wanted to be picky/choosy about Who you disconnect/reset, you can view session info with qwinsta:
qwinsta /server:fabrikam
A couple other command line tools are tsshutdn (shutdown/reboot machine) and tskill (kill process).
I believe these are all available on Windows XP by default.
Rob on February 27, 2005 12:00 PMRunning Terminal Services Manager from my home machine wouldn't connect to the remote machine. the rwinsta command doesn't have any facility for entering credentials.
My remote server is hosted by 1and1.
Haacked on October 14, 2005 1:25 PMThank you very much! These commands are VERY useful.
K on May 8, 2006 7:19 AMAfter reading this article looking for a Remote Connection Manager and realizing that the old MS mmc kinda stunk I built a connection manager using .net 2. I hope it can be of use.
http://sourceforge.net/projects/rdpman
JasonJ on October 2, 2006 12:40 PMyou could also logoff a remote TS user:
in cmd do:
quser /server:servername
logoff sessionID /server:servername
quite handy
cheers
felipe on February 2, 2007 5:51 AMThats cool !
mookDANG2008 on March 27, 2008 4:51 AMOr you can do the following:
query session /server:servername
find the inactive user and then:
logoff usernumber /server:servername
Abject on April 13, 2008 5:49 AMEvery command from above in a command prompt and they did not work for booting a user from the server I entered. I am using Windows XP machine to do it with Domain Admin privileges. Any know why it's not working for me?
The comments to this entry are closed.
|
|
Traffic Stats |