Re: Net use Lpt1: \\computername\Printer

H

Herb Martin

On computer 2 "let's call it Work2" I can use "Net use lpt1:
\\work1\hplj4100" to map the lpt1 port, the map appears ok
but when I do the following command "dir > lpt1" i get access denied.

I can print to the shared printer from both computers in Windows with no
issues. but not in DOS or command mode
I am using a Accounting Software that needs a mapped lpt1 port in DOS or Command mode

Others information about the setup:
3- The users log in with Administrator on both computers

IF this is admins of a computer (not the domain since you said
"workgroup") then these accounts have NO privilege on the other machine.
5- Computer1 (work1) has a printer on LPT1, Computer2 (work2) has no
physical devices attached to LPT1

You don't mention the OS but some verions of Windows REQUIRE the
trailing ":" colon on the LPT1: (and some are forgiving if you leave it
out.)

Even my Win2003 Server works much better if I use the ":" after the LPT1:

You also might need to create a "text printer" on the server side to use
as LPT1: (for proper format of the job.)
 
G

Guest

Thank you for the reply

My question is there a way to pirnt in dos to a shared printer in a Windows 2000 pro workgroup

I am able to map the LPT1 in DOS with Net use LPT1: \\computername\printernam
But when I try to print, for example i use the "DIR > Lpt1" i get access denied, this error only happens on the computer that does not have the printer attached physicaly to LPT1

I have tried mapping to LPT2 with the same result
I have also tried using a password at the end of the net use command "net use lpt1: \\computer\printer password
same access denied result.
 
H

Herb Martin

I have tried mapping to LPT2 with the same result.
I have also tried using a password at the end of the net use command "net
use lpt1: \\computer\printer password"
same access denied result.

IN your original post, I thought you claimed to be
authenticated.

The correct syntax for authenticating in a workgroup to a printer would be:

net use lpt1: \\computername\Printername * /user:computername\username

In a domain, you substitute "domainname" for the 2nd computername (i.e.,
part of the user account specifier.

I still think you may do better if you redirect to LPT1: with the COLON.

--
Herb Martin
Francis said:
Thank you for the reply,

My question is there a way to pirnt in dos to a shared printer in a Windows 2000 pro workgroup?

I am able to map the LPT1 in DOS with Net use LPT1: \\computername\printername
But when I try to print, for example i use the "DIR > Lpt1" i get access
denied, this error only happens on the computer that does not have the
printer attached physicaly to LPT1.
 
G

Guest

Re Jetro question: Yes from workstation 1 I can print from dos prompt, ie the Dir > lpt1 comman

Re Herb: Thanks I have not tried to specify the /user:.... , I will try this and post the result, Thank you!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top