Net Use on a Printer that keeps disconnecting...

Posted on 1999-07-13
Medium Priority
Last Modified: 2013-12-19
Hello all,

I have setup a printer with LPR on a Windows NT 4.0 server and it works just fine. That server is not a PDC or a BDC. If I do a Net Use command on the windows NT server, I see all the drives that are mapped and the printers that are connected. In order for my Cobol shell application to work properly, I must do the command    net use \\ turbo\okidata, then the printer becomes Connected when doing a simple Net Use.

The problem I have is that this printer becomes disconnected, without having done anything. I tried to map a LPT3 with the same path just to get a persistent connection, but still.   net use LPT3 \\ Turbo\Okidata /persistent:yes        Even with this command, it keeps disconnecting.

Any ideas ?

Denis Turcotte
Question by:denisnt

Expert Comment

ID: 1579346
Just a comment:

/persistent does not have anything to do with a printer getting disconnected, it controls wether you do or do not want the port be reconnected next time you log in.

Probably the problem is caused by NT automatically disconnecting idle sessions after a specific timeout (I remember it was something between 10 and 15 minutes). This is a normal optimization that reduces memory consumption on the servers, and normally sessions reconnect automatically when they are used again.

I have, however, seen clients, like Microsofts LAN Manager client, that were not able to cope with disconnected sessions and the connection failed to reconnect if the idle timer on the server expired.

the way to verify this would be to print something every now and then, and then to do nothing for 15 minutes. If the printer fails now, the session optimization is the culprit.

Session disconnects can be turned off via registry parameter, let me know if you cannot find the setting.

Better tactics, however, would be to find out why the normal sessionr econnect fails (if this is the reason ...)

LVL 11

Accepted Solution

ghana earned 1640 total points
ID: 1579347
There is a free tool provided by microsoft called con2prt.exe. It's part of the NT-ZAK, which can be downloaded for free on
Here you can find the documentation to ZAK too.

When executing
con2prt /cd \\turbo\okidata
your computer is connected to the networkprinter without the timout problem. This command can be added to a login script too. You can find further information about using con2prt in the documentation to ZAK.

Expert Comment

ID: 8313700
i have this same problem, but with only a small lan of NT 4 workstations; no server. so ZAK doesn't help me. what is the registry setting that needs to be changed?

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you are looking for an automated tool which can generate reports for Outlook emails and other items from PST file, then you can go for Kernel PST Reporter tool. The reports which are created by this tool are helpful to analyze and understand PST …
Suggested Courses

587 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question