Professional Documents
Culture Documents
1k
HOW TO GUIDE
SOFTWARE
MOBILE APP
INTERNET
HARDWARE
GAMING
WINDOWS
Dec 2, 2005
18 Comments
Delicious
Pgina 1 de 7
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. 2. 3. 4. 5. Portdowngrade Downgrade to Previous Version of FreeBSDs Ports Easy Way to Upgrade FreeBSDs Ports Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 Part 4 Install phpBB 2 in Windows XP running on Apache 2, PHP 5 and MySQL 4 WinSCP Freeware SFTP and SCP client for Windows
18 Comments
Gente March 10, 2009 at 9:23 pm
REPLY
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.
Pgina 2 de 7
REPLY 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
REPLY
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
System error 1202 has occurred. The local device name has a remembered connection to another network resource
REPLY
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.
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.
Pgina 3 de 7
REPLY
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
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
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
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.
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,
Pgina 4 de 7
Jonathan.
REPLY
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
REPLY
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
REPLY
Pgina 5 de 7
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?!
Leave a comment
Name (required)
Website
Comment
Pgina 6 de 7
POST COMMENT
c d e f g c d e f g
Confirm you are NOT a spammer 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
Pgina 7 de 7