Solved

Install Printer Locally with a Bat File

Posted on 2008-06-10
6
750 Views
Last Modified: 2008-07-10
Hello,

I have used the command below to install network printers locally on machines successfully:

RUNDLL32 PRINTUI.DLL,PrintUIEntry /if /b "CS - Dell 5110 CN (Outside Pat's Office)" /f "C:\drivers\5110cn\dlxzizi.inf" /r "IP_130.91.95.105" /m "Dell Color Laser 5110cn PCL6"

However, when I try to write a new command to install a printer locally, that will be connected with a USB cable, it will install, sort of - the printer is listed under Control Panel - Printers and Faxes. When I finally do plug the printer usb cable to the machine, I get the printer added again as "Dell Laser Printer 1720DN Copy 1"

Below is the command I've been using:

RUNDLL32 PRINTUI.DLL,PrintUIEntry /if /b "Dell Laser Printer 1720DN" /f "C:\dell\drivers\1720DN\drivers\print\win_2kxp\DKABJ740.inf" /r "usb001" /m "Dell Laser Printer 1720DN"
0
Comment
Question by:sanddo160
  • 4
6 Comments
 
LVL 59

Expert Comment

by:Darius Ghassem
ID: 21755753
Well the printer driver is installed on USB001 but when you plug the printer it is using USB002 instead. If you right-click the printer Copy1 you can view the Port it is connecting which is mostly likely USB002. The printer that you installed is using USB001 so when you plug the print device up it will use the next available port.
0
 
LVL 59

Expert Comment

by:Darius Ghassem
ID: 21755764
Plug the printer in first.
0
 
LVL 59

Accepted Solution

by:
Darius Ghassem earned 500 total points
ID: 21755784
0
 
LVL 59

Expert Comment

by:Darius Ghassem
ID: 21778486
Any update?
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need IE 6 on Win 7 or Win 10 23 100
Reading registry key from HKCU and not hklm 10 106
Custom printer driver for Xerox 7760 needed. 16 63
Print in grayscale 7 34
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question