Solved

Install Printer Locally with a Bat File

Posted on 2008-06-10
6
746 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
Comment Utility
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
Comment Utility
Plug the printer in first.
0
 
LVL 59

Accepted Solution

by:
Darius Ghassem earned 500 total points
Comment Utility
0
 
LVL 59

Expert Comment

by:Darius Ghassem
Comment Utility
Any update?
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This seems to be a very common error related to the Samsung printer driver. First, this is the error we're talking about: Log: System Type: Error Event: 7000 Agent Time: 3:37:24 am 22-Apr-09 Event Time: 6:07:24 pm 21-Apr-09 UTC Source: Se…
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!    …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now