Redirect LPT1 to Network Printer?

C

Chris Dove

We have an old piece of DOS software which has print options to lpt1 or
com1. How can I redirect these to a network printer?

Thanks

Chris
 
J

Jim Carney

NET USE LPT1 /delete /yes
NET USE LPT1 \\Fileservername\1304Laser /Yes


where 1304Laser was the name of the printer.
Fileservernmae is obviously that, use whatever you have.

if you play with that batch file you should be able to get
it to work. we have an old dos app also.
 
C

Chris Dove

Thanks Jim

Will give it a go

Chris


Jim Carney said:
NET USE LPT1 /delete /yes
NET USE LPT1 \\Fileservername\1304Laser /Yes


where 1304Laser was the name of the printer.
Fileservernmae is obviously that, use whatever you have.

if you play with that batch file you should be able to get
it to work. we have an old dos app also.
 
G

Guest

We had this in place and everything work fine, until we upgraded to XP Pro on the workstations now if anyone other then administrators log in on the workstation they get (The password is invalid for \\server\printer) and then prompts you for a login name and password that will not allow you to log in, even if you put in administators name and password

Any one know why a restricted user is not sending the proper information forward in dos but works fine in windows

Thanks in advanc
Nathan
 
K

Kevin Longley

Non-admins cannot redirect lpt1. This can be accomplished by using a utility
called devon.exe that I believe comes with the windows 2000 resource kit. To
alter xp's default behavior you would then run the following locally:

DEVCON DISABLE *PNP0400
DEVCON DISABLE *PNP0401

I don't recall the MS KB for this.

Nathan said:
We had this in place and everything work fine, until we upgraded to XP Pro
on the workstations now if anyone other then administrators log in on the
workstation they get (The password is invalid for \\server\printer) and then
prompts you for a login name and password that will not allow you to log in,
even if you put in administators name and password.
Any one know why a restricted user is not sending the proper information
forward in dos but works fine in windows?
 
D

Daniel Chang [MSFT]

313644 Non-Administrators Cannot Remap an LPT Port to a Network Printer
http://support.microsoft.com/?id=313644

Thanks Kevin!
--
--
Daniel Chang
Server Setup Team

Search our Knowledge Base at http://support.microsoft.com/directory
Visit the Windows 2000 Homepage at
http://www.microsoft.com/windows2000/default.asp
See the Windows NT Homepage at http://www.microsoft.com/ntserver/

NOTE: Please reply to the newsgroup and not directly to me. This allows
others to add to and benefit from these threads and also helps to ensure a
more timely response. Thank you!
This posting is provided "AS IS" without warranty either expressed or
implied, including, but not limited to, the implied warranties of
merchantability or fitness for a particular purpose.
The views and opinions expressed in this newsgroup posting are mine and do
not necessarily express or reflect the views and / or opinions of Microsoft.
 

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