NETUSE Command, Sharing LPT ports
Posted on 2009-12-16
I have a printer sharing problem in our office. We have tractor feed printers that operate via an LPT port.
To preempt some suggestions:
(I'm out of ethernet connections so I can't do a print server)
(We need the "local" LPT port so some DOS programs we use, but are replacing in the distant future, require it.)
(I understand the inconvience of having to have the host (directly connected) computer on the print from another.)
I am running into an issue sharing a printer through using a netuse script.
net use lpt2 /del
net use lpt2 \\wks-0024\epsonlq-1 /persiStent:yes
net use lpt3 /del
net use lpt3 \\WKS-0060\epsonlq-2 /persiStent:yes
The wierd part is I am able to share the printer (wks-0024) with one computer but not the other (WKS-0060).
When I run the script this is the error message I get:
C:\>net use lpt2 /del
lpt2 was deleted successfully.
C:\>net use lpt2 \\wks-0024\epsonlq-2 /persiStent:yes
The command completed successfully.
C:\>net use lpt3 /del
The network connection could not be found.
More help is available by typing NET HELPMSG 2250.
C:\>net use lpt3 \\wks-0060\epsonlq-1 /persiStent:yes
System error 1396 has occurred.
Logon Failure: The target account name is incorrect.