General discussion
January 16, 2002 at 10:12 PM
shanghai sam

Ghosted connection on LPT port

by shanghai sam . Updated 24 years, 7 months ago

I’ve got an interesting problem that I thought I found the answer to but have not. I’m trying to keep a NET USE LPT2: \\servername\printshare from disconnecting. It seems that after some time less than a half hour the status of the net use LPT2 changes from OK to disconnected. I found some articles on TechNet that seem to address this issue but have not had success in keeping the setting in the registry after issuing a NET USE LPT2: /DEL and then reconnecting.

My current work around is running a batch file that loops every 15 minutes to delete and reconnect.

The reason I’m trying to keep it connected in the first place is that for reasons I won’t get into I’ve got a group of users connecting to a printer on Server A (local users only – no domain). This printer on Server A in turn connects (this is the issue) to Server B (which is in a domain) using a local user logon. If I’m on Server A and attempt to print to LPT2: and the status is disconneted – it reconnects fine and prints.. but it does NOT reconnect for the remote users.. it pops up an access denied message asking to retry. If I then disconnect and reconnect – the job prints fine (from the spooled job).

Is there a way to disable the timer that decides when to “ghost” and unused connection?

This discussion is locked

All Comments