Link to home
Start Free TrialLog in
Avatar of sanddo160
sanddo160

asked on

Install Printer Locally with a Bat File

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"
Avatar of Darius Ghassem
Darius Ghassem
Flag of United States of America image

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.
Plug the printer in first.
ASKER CERTIFIED SOLUTION
Avatar of Darius Ghassem
Darius Ghassem
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Any update?