We help IT Professionals succeed at work.

How to close connections to XP shared printers

Last Modified: 2013-11-21
We have a few printers that don't work correctly and aren't supported on Server 2003 (Dymo Label printers). My work around has been to share them on a XP Pro workstation. I have 30 users that need to print to these few printers. Most of them only print maybe once a day.

XP is keeping an open connection to workstations that have these shared printers installed, hence I am running in to the 10 user limit that XP pro has. Is there anyway to have XP close these sessions after a print job completes? I rarely have more than one person trying to print to these at the same time.

Right now the first ten computers that connect to this workstation can print and all the other will show the printer as being unavailable.

Watch Question

The easiest way would be to setup a print server for them
unless you have enough that you can only setup a few users to each printer


Kind of complicated to explain, but because of the Medical software package we use we still have to have it shared. In fact the printer is plugged in to a printer server, setup on the XP workstation and shared from there. All our other printers aren't a big deal because I can share them on our 2003 server, but these printers don't work with 2003.
DonNetwork Administrator


Perhaps someone else might chime in with a better solution... but the only way that I can think of would be to setup a batch file connect/disconnect to the printers using the 'net use' command.  
 This may be somewhat inconvenient for the user...but consider the alternatives either the users will continue having the existing problem of not being able connect at all...or you can add more printers and only setup a few users to each.  
 That is of course unless every time you connect a printer, it must be re-added to the Medical Software that you are using.
 So in short
>How to close connections to XP shared printers

net use devicename: /delete

I am curious though as to why the Medical software will only accept 'shared printers' rather than networked...Is there possibly a workaround for this?

Are you printers on the 2003 server shared via active directory?

Ok, this is a bit of work i will admit but i will address your issue. I had the same issue with a printer model once and ended up running across this and it worked for me.

This will require a re-install of the print server or setting up another box specifically for it. You will need your original XP installation disk and you will need to download nlite from http://www.nliteos.com/ . This handy little program is designed for installation automation but one of the really nice features is that it allows you to modify the connection limit to whatever you want in the process. It may be some work but it should solve your issue.


Diesel79 - I started working on this option as I have an extra Desktop I can use. The only option I could find that sounds similar to what you are talking about is.

Maximum unfinished simultaneous connections - This is what is known as the SP2 TCP/IP patch. In SP2, Microsoft limited the number of simultaneous incomplete outbound connection attempts to 10, with the intention of slowing down the propagation of worms. While this limit doesn't affect most users, many people report problems with P2P software.
(I found this description here: http://www.neoseeker.com/Articles/Hardware/Guides/windowscustomization1/13.html)

I have already tried this fix on the current computer and it didn't help.
(I was able to download a tool that changes this setting on an existing computer from here: http://www.lvllord.de/)

I am beginning to think there is no way around this limitation and I am going to have to try and come up with a different solution.
Unlock this solution and get a sample of our free trial.
(No credit card required)
DonNetwork Administrator



dstewartjr - I realize the 10 user limit and I am okay with that. In fact I have two Windows 2003 servers, my problem is that the printers aren't supported/don't work with 2003. That is why I was wondering why if there is a shared printer on XP why does a workstation keep an open connect to that printer even if it doesn't use it once during the day. From what I am learning it appears that windows keeps this connection open so that it can keep up on the status of the printer even if it hasn't sent a print job.

It does keep the connection open for a default of 15 minutes but you can modify the time setting. See the post in my earlier link .

if it is mapped it is connected

Yeah, the connection would timeout after 15 minutes (or whatever it is set at) after a PC is shutdown/disconnected)

Use the following procedure to overcame the 10 conection limit.
This is not a crack.
It is just a configuration Mapping Printer Queues Using LPR/LPD and firewall to overcame the 10 conection limit.


jrtec - A goolge search had turned that page up and the reason I didn't go that route is I would loose the ability to deploy/change the printers through AD and login scripts.
DonNetwork Administrator

It also helps to read others posts to avoid reposting already mentioned links


This Microsoft KB seems to be the answer. I have changed the default AutoDIsconnect time from 15 minutes to 1 minute. With this change a persons connection is dropped 1 minute after they print, therefore freeing up the connection for someone else to use.


http://support.microsoft.com/kb/314882 - This Microsoft KB seems to be the answer. I have changed the default AutoDIsconnect time from 15 minutes to 1 minute. With this change a persons connection is dropped 1 minute after they print, therefore freeing up the connection for someone else to use which is exactly the behavior I was looking for.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.