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!!!我該名男子!