Showing posts with label Server 2003. Show all posts
Showing posts with label Server 2003. Show all posts

Saturday, June 20, 2009

Remotely Logoff Terminal Users

One of the things I use this blog for is to augment my bad memory. Specifically, when I find a solution or fix a problem, I like to document it so I can easily find it later. Today I've got two. If nothing else, I'm sure I'll be using these again down the road.


Remotely Log Off Users

I frequently use Remote Desktop, especially when I'm at home and need to access my desktop at work. Nothing stinks more than logging in, only to see this:

RemoteDesktopExceeed

This happens because Windows by default only allows two simultaneous terminal services connections to the same machine. Usually one is my console user, but at various times other people remote into my machine to grab things, and don’t explicitly log out of machines when they disconnect from remote desktop which causes their sessions to remain active.

First, how can we query to find out what users have a session on a remote machine? Windows provides the qwinsta.exe command which we can use to query for the sessions that are running The format is as follows (from a command screen, of course, so go to Start | Run | cmd - and you must be an administrator on the target machine - for instance I'm an admin on the 10.1.2.230 box):

qwinsta /server:

So, in my case it's qwinsta (or quser works as well) /server:10.1.2.230

It shows the user and the session ID, and quser shows the idle time as well (which is handy for determining who to boot).

Now that we know what users are on a machine, the next step is exercising those Administrator functions, and kicking them off. The command is logoff.exe.

logoff  /server:

So for mine, it was logoff 1 /server:10.1.2.230. That kicked Nate off my box, and allowed me to remote in.

WARNING BEFORE YOU DO THIS:
If you log someone off, whatever they had open or whatever they were doing is lost. Be prepared for angry people, unless you're really sure they're idle or done...


Wednesday, March 25, 2009

Are you a university student? Want Server 2003/2008 for free?

Two posts in one day? What?

Windows Server 2003 Standard Edition
This is available from Microsoft's Dreamspark website. Windows Server 2003 is specifically designed for a server environment, but can easily be configured to use as a workstation. Once configured as a workstation, it is basically Windows XP, but a more secure code revision. Windows XP drivers nearly always work perfectly on Server 2003, with very very few exceptions. Users also report gaming performance is equal to Windows XP, and better than Vista.

Windows Server 2008
Available through Dreamspark (see above), instructions here to configure it to workstation so it looks more like Vista except without the bloat.

Thanks to various people on SlickDeals.net (the best deals site, IMO) for the info. I've gotten a key from Dreamspark for 2008, and will grab one for 2003 here soon.