Unable to map printer to LPT1

sammuel

New member
Hi,
My office use DOS application and shared printer. I login as administrator, use "net use" command to lpt1 and it always prompt for user and password, every time I type user password, it always failed and has an error like this:

system error 5 has occured.
Access is denied.

I tried to map to another port like LPT2 or LPT3, it success....but... When I use print command from my DOS application, it always says that "printer is not ready".

Can anybody help me, please? When I used Windows XP it's fine, it drives me crazy with this Win 7 Profesional.
 

My Computer

Computer Manufacturer/Model Number
ACER VERITON M460
OS
Windows 7 Profesional 32 bit
Write the net use command in a txt file and save it as a .bat file on the desktop. Then right click on the .bat file, select run as administrator. It should work...
 

My Computer

OS
Windows 7 64-bit
Write the net use command in a txt file and save it as a .bat file on the desktop. Then right click on the .bat file, select run as administrator. It should work...

If this works, go to your UAC settings and move the scroll bar to the bottom so that you are never notified about making changed your computer. Then, move the .bat file to your startup folder and this will be mapped successfully eachtime your computer starts.
 

My Computer

OS
Windows 7 64-bit
I tried to map to another port like LPT2 or LPT3, it success....but... When I use print command from my DOS application, it always says that "printer is not ready".

Can anybody help me, please? When I used Windows XP it's fine, it drives me crazy with this Win 7 Profesional.

This is because DOS applications can generally only print to LPT1.

Are you logged on as a user with administrative credentials? If not then non admin users are unable to map an LPT port to to a network printer if the LPT port exists on the system as a physical parallel port.

Adding the user to local admins should get you around this.
 

My Computer

OS
Windows 7 Ultimate x64
CPU
2x AMD FX-74 @ 3GHz
Motherboard
ASUS L1N64-SLI WS
Memory
4GB
Graphics Card(s)
2x BFG 8800GTX OC
Sound Card
Creative X-Fi Fatal1ty
Monitor(s) Displays
HP L2045w
Hard Drives
2x Samsung Spinpoint
PSU
Enermax 1000W
Case
Armor Extreme ATX
Cooling
Air
Write the net use command in a txt file and save it as a .bat file on the desktop. Then right click on the .bat file, select run as administrator. It should work...

If this works, go to your UAC settings and move the scroll bar to the bottom so that you are never notified about making changed your computer. Then, move the .bat file to your startup folder and this will be mapped successfully eachtime your computer starts.


Yes, it works. I finally can map the printer to LPT1, but, when I try to print using DOS, it still says "printer is not ready". Why?

I checked in command promt and type "net use" to see if my connection is OK, and it's fine. When I print with other application such as notepad or word it's also fine. the problem occurs only in DOS.

Are you logged on as a user with administrative credentials? If not then non admin users are unable to map an LPT port to to a network printer if the LPT port exists on the system as a physical parallel port.

Yes...I use administrative credentials.
 

My Computer

Computer Manufacturer/Model Number
ACER VERITON M460
OS
Windows 7 Profesional 32 bit
The only success I've had is to log in as the user (who has administrative privilleges) and open an elevated (right click, run as admin) command prompt windows and type in...net use lpt1 \\server\printer.

Then the user is able to print from a DOS program.

If they restart the computer, they have to rerun the net use command before printing from the DOS program.

I haven't tried turning UAC off though. I will do that right away.
 

My Computer

OS
Windows 7
have the same exact problem, i can't write a script when the user logs on since it promts for username and password which doesn't work. The user is an administrator on the local machine but the only way to make it work, is to right click and "run as administrator".... however i can't/dunno how to write that in a script
 

My Computer

OS
Winows 7 Professional 32-bit
Back
Top