Logging in to a remote terminal sessions when you have reached the maximum number of connections.

by Joe Havelick 16. March 2009 09:50

Windows XP only allows for a single (console) instance of an interactive logon. Windows Server 2003, without terminal services licensed and enabled, will allow for an additional two remote connections. Occasionally, usually because users forget to logout from remote desktop, but occasionally because remote desktop doesn't reuse preexisting connections, you may be prompted with:

The terminal server has exceeded the maximum number of allowed connections.

In order to connect, you may logout users from existing connections.  To do so, there are a couple of command prompt commands you must know:

qwinsta /server:servername 

This will list all active connections (including via the console). You can identify who has the open connection via the username column. Find the ID of the connection you wish to terminate, and pass it into the following command:

rwinsta /server:servername ID


Tech Tips

Deleting Folders with Names Ending Periods

by Joe Havelick 8. February 2009 19:17

Although it is not possible to create NTFS folders ending in periods through Explorer, there are a few ways in which you may end up with such a folder on your hard drive.  If you do, you will find that folder difficult to read, update, or delete.  Windows will allow you to move it to the recycling bin, but not delete it.  You will be presented with an error indicateing that it "Could not find..." when trying to navigate via Explorer or the command prompt.

This folder is likely valid, so running checkdisk will not resolve the issue.  

Certain command line tools support a special syntax ("\\?\") which allows you to reference these folders.  In this example, I will describe how to delete a folder "C:\Folder\Misc.." which contains files and folders at a lower level.  First, we must remove those files and folders:

 del "\\?\C:\Folder\Misc.." /s

Next, I can remove the folder itself

 rmdir "\\?\C:\Folder\Misc.."



Tags: ,

Tech Tips

About Me

Joe Havelick is a reasonable facsimile of this photo.

profile for Joe on Stack Exchange, a network of free, community-driven Q&A sites