You are on page 1of 7

WINDOWS

Dec 2, 2005 My Digital Life Editorial Team 18 Comments Delicious


0
Unable to Map (Net Use) LPT1 in Windows XP
Whenever try to perform net use lpt1 command,
the system cannot and unable map to the printer
share/queue properly. Instead, it will prompts you
for user id and password (if no user id and/or
password is specified when issued net use
commad). For example,
Command Prompt:\> net use lpt1:
\\computer_name\printer
The password is invalid for
\\computer_name\printer.

Enter the user name for computer_name: user
Enter the password for computer_name:
System error 5 has occured.

Access is denied.
To make matter worse, no matter what security settings and permissions you have changed, the net use
command simply is not working.
The reason for this issue is because in Windows XP and Windows Server 2003, non-administrators
cannot remap an LPT port to a network printer, when the LPT port is already assigned to the local
parallel port. In other words, only a member of the Administrators group can use the net use command
tomap the LPT port for a local (hardware) parallel port to a network printer. According to Microsoft, this
behaviour is desinged to help improve security.
Solutions
To solve the cannot net use lpt1 problem, there are several ways:
1k
Living Digitally and Electronically
HOW TO GUIDE INTERNET GAMING HARDWARE MOBILE APP SOFTWARE
Unable to Map (Net Use) LPT1 in Windows XP My Digital Life
Pgina 1 de 7 Unable to Map (Net Use) LPT1 in Windows XP My Digital Life
Log on as an administrator
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.
Alternatively, the command can be run individually at each workstation by adding a command to Startup
folder for All Users or particular users. Devcon utility can be found here with its information.
If your program can print to the LPT2 port or the LPT3 port, use the net use command to map the
network printer to the LPT2 port or the LPT3 port. Most computers do not have physical LPT2 or LPT3
ports, so a non-administrator can map an LPT2 port or an LPT3 port to a network printer.
Related posts:
1. Portdowngrade Downgrade to Previous Version of FreeBSDs Ports
2. Easy Way to Upgrade FreeBSDs Ports
3. Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 Part 4
4. Install phpBB 2 in Windows XP running on Apache 2, PHP 5 and MySQL 4
5. WinSCP Freeware SFTP and SCP client for Windows
18 Comments
Gente March 10, 2009 at 9:23 pm
with "disable the LPT1 in the bios" some of the computers printing problem solved, but some
computers still not access to run "net use" command even I tried with "devcon" but its giving
error : Disable failed
No devices disabled.
REPLY
Danny October 9, 2008 at 10:04 am
Unable to Map (Net Use) LPT1 in Windows XP My Digital Life
Pgina 2 de 7 Unable to Map (Net Use) LPT1 in Windows XP My Digital Life
I had to change my security settings for the printer. Once I added my domain users to the
printer's list, everything went fine. I guess I'm lucky
REPLY
john from www.imcco. May 20, 2008 at 10:26 am
XP Pro solution to net use issue
One caveat that may not work for you:
You must disable LPT1 on the bios of the affected XP workstation
this worked for me!
yes, Just disable the LPT1 in the bios.
You may also try changing it to lpt2- i did not test that
I AM the man!!!
REPLY
JasonN September 28, 2007 at 6:23 am
@ Kuldeep:
try "net use lpt1" to see what your LPT1 thinks it is.
otherwise delete your LPT mapping by running "net use lpt1 /d" If you're gonna script the
delete you might need to add a /y or a /yes to confirm (can't remember which)
REPLY
kuldeep September 8, 2007 at 11:01 pm
System error 1202 has occurred. The local device name has a remembered connection to
another network resource
REPLY
Angela June 8, 2007 at 12:36 pm
Check and see if you have an error message in your printer queue if so delete it out, because
the errors are holding up the rest of your print jobs also PowerPoint presentation
take long to spoon.
REPLY
thanh Tung April 14, 2007 at 7:08 pm
I have a problem with lpt also. When I use net use command, it's say ok, but I still cannot print.
My network deltail: computer1 connect direct to HP laser 1320 by USB and share this printer
with name's hplaserj (default share name). Computer2: I install hp 1320 driver in LPT2. I use
command: net use lpt2: computer1hplaserj.
I have check it is map OK, but I still cannot printing.
I thinks have some virus in my network, but I can't find out it. Somebody have any idea??
Thanks so much.
REPLY
Unable to Map (Net Use) LPT1 in Windows XP My Digital Life
Pgina 3 de 7 Unable to Map (Net Use) LPT1 in Windows XP My Digital Life
If Someone have some idea please send mail to me: thanhtung0811@yahoo.com.
Lars Hiberg March 5, 2007 at 2:26 am
ok same problem, printer not ready in vista 16 bit dos program, BUT I GOT MY NETWORK
PRINTER to print from DOS in Vista under propeties for the shared printer use printergroup
in the botton, mark the "network printer" AND mark "LPT 1", then it works.But but but, when
you restart the pc, same problem is there again, any there can find solution for this.
REPLY
Martyn February 25, 2007 at 10:24 am
Well here we go again. If you think we have problems with the net use in XP /2003 wait until
you try vista.. The Net Use work great in a parent
but try handing it down to a child and guess what! its not available.. What does this mean!!
Well anybody running a 16-bit dos program currently will not see any redir's when you have
redirected to a usb port. For excample open a command box (Dos Box) type: Net Use Lpt2:
servernameprintername /persistent:yes then do a dir *.* > lpt2 works great ! Now start your dos
application and try to print to the same lpt port Read write error or I/O error.. The reason..
When your dos application starts it becomes the child application and permissions do not pass
to the child.. Can you change this? NO at least I have not been able
ahh just a few moments with uncle bill would be nice.. Let me know if there is a fix for this .
I will post anyhing I find.. Currently working with MS as I'm not the first guy to run into this..
cheers all
REPLY
Doug P December 13, 2006 at 7:39 am
Disabling LPT1 in device manager or the BIOS will work also. Of course this will not allow a
user to switch back and forth between a local and network printer if they have that
requirement.
REPLY
Eric2 August 23, 2006 at 6:12 am
I agree with Jonathan, changing the LPT1 port settings to use LPT2 allows LPT1 to be
accessed and works very nicely. It's amazing how many ancient DOS 16 bit apps are still
floating around needing these types of workarounds.
REPLY
Jonathan May 21, 2006 at 6:25 pm
The devcon utility is a waste of time. It also requires local admin rights to run.
The easiest way around this problem is to go to device manager, and change the properties
for the LPT1 port and change to LPT2, or any other port you are not using.
Once this has been done, any unpriviledged user can map LPT1.
Cheers,
REPLY
Unable to Map (Net Use) LPT1 in Windows XP My Digital Life
Pgina 4 de 7 Unable to Map (Net Use) LPT1 in Windows XP My Digital Life
Jonathan.
Eric March 1, 2006 at 12:44 pm
Hi the users do not have Admin rights to the machine but I do as a local IT support person
but it is still "greyed-out" for me. Further I had one of the NTAdmins (full power over the NT
LAN) try by logging on to the machine still greyed-out. We obtained the local Admin
password and still greyed-out. No one at any level in the oganization can log in and disable the
LPT1 port through either the Device Manager or through devcon utility strange! The
NTAdmins in the organization are still stratching their heads. I thought I may find the solution
through some user groups.
Any other suggestions are appreciated.
Eric
REPLY
Administrator March 1, 2006 at 10:49 am
Is the users been assigned Administrator rights?
REPLY
Eric March 1, 2006 at 6:14 am
Hi Guys. I have been using the devcon utility to disable LPT1 for many of the computers in the
office, then using net use to re-map the LPT1 port to a network queue. This is well
documented and works. My problem is that a few computers in the office will not allow me to
disable the LPT1 port. When I check the LPT1 setting in Control Panel it is "greyed out" so I
can't disable it there either. I've done numerous "google" searches but come up without any
information about this issue.
Any info would be appreciated Eric
REPLY
Brian Buchholtz February 7, 2006 at 7:03 am
Think I figured it out
As far as I can tell, LPT port disable seems to be working. Forget about using the PATH
command and just use START.
Example:
START L:devcondisable *PNP0401
Hope this helps anyone else who's a bit rusty with batch files
REPLY
Administrator February 3, 2006 at 11:28 pm
I believe devcon needs administrative rights too to function properly.
REPLY
Unable to Map (Net Use) LPT1 in Windows XP My Digital Life
Pgina 5 de 7 Unable to Map (Net Use) LPT1 in Windows XP My Digital Life
Leave a comment
Name (required)

Mail (will not be published) (required)

Website

Comment
Brian Buchholtz February 3, 2006 at 12:33 pm
Thanks for posting this! I never would have thought to use devcon.
I've been trying (in vain) to tighten security on our network. And I am absolutely befuddled as
to why Microsoft is so adament about having its users run as Administrators on Windows XP
workstations. Come guys I rather a system allow for LPT port redirects then having
everyone run as the God user.
Anyways I've been working on logon scripts for OU's in our domain. LPT redirects work just
fine when the logged in user has admin rights. But! LPT redirects still aren't working (for even
power users) even when there isn't a locally defined LPT port.
And (perhaps on a related note), devcon doesn't seem to work for my login scripts. Here's
what I'm trying:
I have devcon.exe copied to my NETLOGON share
I map L: to serverNETLOGON
In my logon script I run:
PATH = L:
devcon disable *PNP0401
Any ideas?!
REPLY
Unable to Map (Net Use) LPT1 in Windows XP My Digital Life
Pgina 6 de 7 Unable to Map (Net Use) LPT1 in Windows XP My Digital Life
POST COMMENT
gfedc Confirm you are NOT a spammer
gfedc
Notify me of followup comments via e-mail. You can also subscribe without commenting.
NEW ARTICLES
Orient Watch Worldtime Journeyman
worth $680 Free Giveaway Contest
HTC Rezound Combines 4.3 True HD
Screen with Beats Audio Technology
iOS 5 for iPhone, iPod touch and iPad
Released for Download
Find My Friends App for iOS Free
Download
iCloud Lives
LATEST DISCUSSIONS
forum profile service on SunRocket
VoIP Review by BusinessWeek
Tad on Official Windows 7 SP1 ISO
from Digital River
Glenn Rogers on How to Minimize
Skype to Windows 7 System Tray
(Notification Area)
BIGMAC on Lugaru: The Rabbits
Foot Game Free Download with
Register Serial Number
sandeep on How to Auto Generate
Description Meta Tag in WordPress
2005 - 2012 My Digital Life. All Rights Reserved.
Unable to Map (Net Use) LPT1 in Windows XP My Digital Life
Pgina 7 de 7 Unable to Map (Net Use) LPT1 in Windows XP My Digital Life

You might also like