Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to map to LPT1

Status
Not open for further replies.

Dmasch

MIS
Feb 18, 2002
326
I want to be able to map to my printer from dos.
ex net use lpt1: \\workstation\printer

I can only do this if the user has admin privileges
does anyone know how i can do this with just power user privileges?
 
the regular user should be able to use net use to setup lptx. what do you as a regular user get if using net view \\servername\printname? what do you receive if using net use lpt1: \\servername\printname?

For more tips or information, go to

Robert Lin, MS-MVP, MCSE & CNE
Windows, Network and How to at
 
You get an error5 access denied. You give them admin rights you get command completed sucessfully.
 
According to MS:
"This behavior occurs because only a member of the Administrators group can use the net use command to map the LPT port for a local (hardware) parallel port to a network printer. This behavior is designed to help improve security."


The workaround I use is the Devcon.exe tool.

Use the devcon disable *PNP0401 command to disable the LPT port mapping to the local parallel port when the computer starts. The devcon disable *PNP0401 command is for LPT1. To find the hardware ID for other LPT ports, use the devcon findall * command. The devcon command must run when the computer starts. For a computer in a domain, you can set up Group Policy to run devcon as a computer startup script. To set Group Policy, open the appropriate group policy, open Computer Configuration\Windows Settings\Scripts (Startup/Shutdown)\Startup, and then add the command.

The devcon tool can be found here:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top