Unable to Map (Net Use) LPT1 in Windows XP无法地图(净使用)是LPT1在Windows XP
Whenever try to perform “net use lpt1″ command, the system cannot and unable map to the printer share/queue properly.每当尝试执行“净使用LPT1连接”命令,系统不能和无法映射到打印机共享/队列妥善。 Instead, it will prompts you for user id and password (if no user id and/or password is specified when issued net use commad).相反,它会提示您输入用户ID和密码(如果没有用户ID和/或密码,是指定时,发出的净使用commad ) 。 For example,举例来说,
Command Prompt:\> net use lpt1: \\computer_name\printer命令提示符: \ >净的使用是LPT1 : \ \计算机名\打印机
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.系统错误已发生5 。
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.使问题更糟的是,无论什么安全设置和权限,你已经改变, net use命令,根本不是工作。
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.这种情况的原因问题,就是因为在Windows XP和Windows Server 2003 ,非管理员无法将LPT端口到网络打印机,当LPT端口是已经分配给本地并行端口。 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.在其他换言之,只有管理员组的成员可以使用net use命令tomap LPT端口,为本地(硬件)并行端口到网络打印机。 According to Microsoft, this behaviour is desinged to help improve security.据微软称,这种行为是desinged ,以帮助提高安全性。
Solutions 解决方案
To solve the cannot net use lpt1 problem, there are several ways:解决不能使用的净是LPT1问题,有几种方法:
- 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.使用devcon禁用* pnp0401命令禁用LPT端口映射到本地并行端口的计算机启动时。 The devcon disable *PNP0401 command is for LPT1.该devcon禁用* pnp0401命令是为LPT1连接。 To find the hardware ID for other LPT ports, use the devcon findall * command.找到的硬件ID为其他LPT端口,使用devcon findall *命令。 The devcon command must run when the computer starts. DevCon命令必须运行在计算机启动时。 For a computer in a domain, you can set up Group Policy to run devcon as a computer startup script.一台计算机在一个域中,您就可以设置组策略运行devcon作为一个计算机启动脚本。 To set Group Policy, open the appropriate group policy, open Computer Configuration\Windows Settings\Scripts (Startup/Shutdown)\Startup, and then add the command.设置组策略,打开相应的组策略,打开计算机配置\ Windows设置\脚本(启动/关机) \启动,然后添加命令。 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 devcon实用工具可以发现 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.如果您的程序可以打印到LPT2端口,或LPT3连接埠,使用net use命令映射网络打印机LPT2端口,或LPT3连接港口。 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.”大多数计算机没有物理LPT2或LPT3连接港口,所以一个非管理员可以地图一LPT2端口或一LPT3连接港口到网络打印机“ 。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article英文原版的文章 whenever possible.只要有可能。
Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 . 。
Related Articles相关文章
- Memory-Map Topo PC and Pocket PC Software Review by Geekzone记忆地图中Topo的PC和Pocket PC软件审查geekzone
- Relevantis Launches Map Advertising relevantis推出地图广告
- Free Download: Microsoft Pro Photo Tools Version 1 with Geotag Metadata Support免费下载:微软专业照片的工具第1版与地理元数据支持
- View Google Earth in Web Browser plus Easy Switching with Alternative Satellite and Aerial Mapping Services with Flash Earth鉴于Google地球在Web浏览器,另加容易开关的替代卫星和航空测绘服务与Flash地球
- Using Character Map (charmap) to Type and Input Special Characters and Accents in Windows Vista使用性质的地图( charmap )的类型和输入特殊字符和口音,在Windows Vista
- France Maps and Satellite Images via Geoportail.fr法国地图和卫星图像通过geoportail.fr
- Workaround for Slow Large File Copying and Transfering To and From Vista PC替代缓慢,大文件复制和转移,并从Vista电脑
- Mars Map on Google火星地图在Google
- Unable to Connect to Internet in Virtual PC with NAT Shared Networking NAT on Windows XP Guest无法连接到互联网的虚拟PC与NAT的共享网络的NAT在Windows XP客户
- OFXIE12007 Microsoft Money 2007 Unable to Connect Error ofxie12007微软钱, 2007年无法连接的错误















February 3rd, 2006 04:33 2006年2月3日4时33分
Thanks for posting this!感谢发布此! I never would have thought to use devcon.我从来没有会想到使用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.和我绝对befuddled至于为什么微软是如此adament约后,其用户运行,作为系统管理员在Windows XP工作站。 Come guys… I rather a system allow for LPT port redirects then having everyone run as the God user.来家伙… …我,而不是一个制度,让LPT端口重定向,然后运行后,每个人都作为上帝的用户。
Anyways… I’ve been working on logon scripts for OU’s in our domain. anyways … …我一直致力于对登录脚本欧的在我们的网域。 LPT redirects work just fine when the logged in user has admin rights. LPT连接重定向的工作只是罚款时登录的用户有管理员权限。 But!但是! LPT redirects still aren’t working (for even power users) even when there isn’ta locally defined LPT port. LPT连接重定向仍然不能工作(甚至电源的用户) ,甚至当有不是本地定义的LPT端口。
And (perhaps on a related note), devcon doesn’t seem to work for my login scripts.和(也许是在一个相关的注) , devcon似乎并不工作,为我的登录脚本。 Here’s what I’m trying:这里的什么我尝试:
I have devcon.exe copied to my NETLOGON share我devcon.exe复制到我的Netlogon共享
I map L: to \\server\NETLOGON i地图升: \ \服务器\的Netlogon
In my logon script I run:在我的登录脚本运行:
PATH = L:\路径=升: \
devcon disable *PNP0401 devcon禁用* pnp0401
Any ideas?!任何想法吗!
February 3rd, 2006 15:28 2006年2月3日15时28分
I believe devcon needs administrative rights too to function properly.我相信devcon的需要,行政权利的过于适当地运作。
February 6th, 2006 23:03 2006年2月6日23时03分
Think I figured it out…想我揣摩出来…
As far as I can tell, LPT port disable seems to be working.据我可以告诉, LPT端口禁用,似乎是工作。 Forget about using the PATH command and just use START.忘记有关使用path命令和公正的使用开始。
Example:例如:
START L:\devcon\disable *PNP0401开始升: \ devcon \禁用* pnp0401
Hope this helps anyone else who’sa bit rusty with batch files希望这会有所帮助别人who'sa位生锈与批处理文件
February 28th, 2006 22:14 2006年2月28日22时14分
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.我一直使用devcon公用事业禁用是LPT1许多电脑在办公室,然后利用网使用重新地图LPT1端口到网络队列中。 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.我的问题是,一些电脑在办公室,将不会允许我禁用LPT1端口。 When I check the LPT1 setting in Control Panel it is “greyed out” so I can’t disable it there either.当我检查LPT1连接设置在控制面板,它是“灰色” ,所以我不能禁用它有。 I’ve done numerous “google” searches but come up without any information about this issue.我已经做了无数的“ Google ”搜索,但没有拿出任何有关此问题。
Any info would be appreciated - Eric任何信息将不胜感激-李家祥
March 1st, 2006 02:49 2006年3月1日2时49分
Is the users been assigned Administrator rights?是用户被指派管理员权限?
March 1st, 2006 04:44 2006年3月1日4时44分
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.进一步我其中的ntadmins (全功率超过新台币LAN )的尝试,由登录到机器-仍然灰色淘汰。 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!任何人在任何级别,在oganization可以登录并禁用LPT1端口或者通过设备管理器或通过devcon工具-奇怪! The NTAdmins in the organization are still stratching their heads.该ntadmins在该组织仍然stratching他们的元首。 I thought I may find the solution through some user groups.我以为我可以找到解决方案,通过一些用户群体。
Any other suggestions are appreciated.任何其他的建议表示赞赏。
Eric李家祥
May 21st, 2006 10:25 2006年5月21日10时25分
The devcon utility is a waste of time.该devcon公用事业是一种浪费的时间。 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.最简单的方式解决这个问题是到设备管理器,属性更改为LPT1端口和改变LPT2连接,或任何其他港口您使用的不是。
Once this has been done, any unpriviledged user can map LPT1.一旦这个已经做了,任何用户都可以unpriviledged地图是LPT1 。
Cheers,干杯,
Jonathan.乔纳森。
August 22nd, 2006 22:12 2006年8月22日22时12分
I agree with Jonathan, changing the LPT1 port settings to use LPT2 allows LPT1 to be accessed and works very nicely.我同意乔纳森,改变LPT1端口设置以使用LPT2连接允许LPT1连接,以访问和工程非常漂亮。 It’s amazing how many ancient DOS 16 bit apps are still floating around needing these types of workarounds.它的惊人多少古老的DOS的16位应用程序仍在浮动左右,需要这些类型的替代方法。
December 12th, 2006 23:39 2006年12月12日23时39分
Disabling LPT1 in device manager or the BIOS will work also.禁用LPT1连接在设备管理器或BIOS的工作也将。 Of course this will not allow a user to switch back and forth between a local and network printer if they have that requirement.当然,这将不会允许使用者之间来回切换本地和网络打印机如果他们有这项要求。
February 25th, 2007 02:24 2007年2月25日2时24分
Well here we go again.以及我们在这里再次前往。 If you think we have problems with the net use in XP /2003 wait until you try vista..如果您认为我们有问题的净使用在XP / 2003等到您尝试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.以及任何运行DOS的16位计划目前将不会看到任何redir的当您有重定向到一个USB连接埠。 For excample open a command box (Dos Box) type: Net Use Lpt2: \\servername\printername /persistent:yes then do a dir *.* > lpt2 works great !为excample打开一个命令框( DOS的框)输入: net使用LPT2连接: \ \服务器名\ printername /持久性:是的,然后做了迪尔*.* > LPT2连接工程的伟大! Now start your dos application and try to print to the same lpt port… Read write error or I/O error..现在开始您的DOS应用程序,并尝试打印到相同的LPT端口…读写错误或I / O错误.. The reason..原因.. When your dos application starts it becomes the child application and permissions do not pass to the child..当您的DOS应用程序启动,成为儿童的应用和权限不通过,以儿童.. Can you change this?你是否可以改变呢? NO at least I have not been able没有,至少我未必能够一一
ahh just a few moments with uncle bill would be nice.. ahh只是几分钟与叔叔条例草案将尼斯.. Let me know if there is a fix for this .让我知道,如果有一个修复此。
I will post anyhing I find..我会后anyhing我觉得.. Currently working with MS as I’m not the first guy to run into this..目前的工作与MS作为我不是第一的家伙来说,这.. cheers all所有的欢呼声中
March 4th, 2007 18:26 2007年3月4日18时26分
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….确定同样的问题,打印机不准备在Vista 16位DOS程序,但我得到我的网络打印机打印从DOS在Vista …下特性为共享打印机使用printergroup ,在顿,马克的“网络打印机”和马克“的LPT 1 “ ,那么工程…但,但,但,当您重新启动电脑,同样的问题是有再次,任何有可以找到解决这个… … 。
April 14th, 2007 11:08 2007年4月14日11时08分
I have a problem with lpt also.我有一个问题的LPT也。 When I use net use command, it’s say ok, but I still cannot print.当我使用net use命令,它的发言权确定,但我仍然无法列印。 My network deltail: computer1 connect direct to HP laser 1320 by USB and share this printer with name’s hplaserj (default share name).我的网络deltail : computer1连接,直接向惠普激光1320年由USB和共享这台打印机与名称的hplaserj (默认共享名称) 。 Computer2: I install hp 1320 driver in LPT2. computer2 :我安装的HP 1320的驱动程序在LPT2连接。 I use command: net use lpt2: \\computer1\hplaserj.我使用命令: net use LPT2连接: \ \ computer1 \ hplaserj 。
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. i认为,有一些病毒在我的网络,但我不能找到它。 Somebody have any idea??有人有任何的想法吗?
Thanks so much.感谢这么多。
If Someone have some idea please send mail to me:如果有人有一些想法,请发邮件给我: thanhtung0811@yahoo.com . 。
June 8th, 2007 04:36 2007年6月8日4时36分
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检查,看看如果你有一错误讯息在您的打印机队列如果是的话删除它,因为错误是举行了其余的您的打印作业也PowerPoint简报
take long to spoon.采取长勺。
September 8th, 2007 15:01 2007年9月8日15时01分
System error 1202 has occurred.系统错误1202发生了。 The local device name has a remembered connection to another network resource本地设备名称已记住连接到另一个网络资源
September 27th, 2007 22:23 2007年9月27日22时23分
@ Kuldeep: @ kuldeep :
try “net use lpt1″ to see what your LPT1 thinks it is.尝试“网使用的是LPT1 ” ,看看有什么您是LPT1认为这是。
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)否则删除您的LPT映射运行“净使用是LPT1 / D ”类如果您在哪里脚本删除您可能需要添加/ Y或一/是确认(不记得其中)
May 20th, 2008 02:26 2008年5月20日2时26分
XP Pro solution to net use … issue XP专业版的解决方案,以净使用…问题
One caveat that may not work for you:一警告,可能不为您工作:
You must disable LPT1 on the bios of the affected XP workstation您必须停用是LPT1上的BIOS受影响的XP工作站
this worked for me!这个工作我!
yes, Just disable the LPT1 in the bios.是的,刚才禁用LPT1连接在BIOS中。
You may also try changing it to lpt2- i did not test that您也可以尝试改变它LPT2连接-我没有测试
I AM the man!!!我该名男子!