Solved

Install Printer Locally with a Bat File

Posted on 2008-06-10
6
754 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exchange & AD management console 2 112
shd and spl analysis 3 127
print server and spool/raster file creation 2 25
EXCEL 2010 wants to print 1 page PER CELL...!! crazy 6 28
If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

828 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