Solved

Install Printer Locally with a Bat File

Posted on 2008-06-10
6
757 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
OLD TECH - PKZIP Only Zips 7 Files 17 119
Looking for good easy switch for lab at home. 13 121
Where can I find a virus scanner for XP SP2? 22 122
Updating Printer Details in VB.Net 16 42
Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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…
Suggested Courses

732 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