Question Locked

Installing network printer using "rundll32 printui.dll,PrintUIEntry"

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to install a network printer by using this command:
rundll32 printui.dll,PrintUIEntry /if /b "HP4510-DH" /f "\\servername\apps\drivers\JP Drivers\HP4510\XP\hpc4015c.inf" /r "IP_10.0.0.206:" /m "HP LaserJet P4010_P4510 Series PCL 6"
and it doesn't work
but if I change the port to /r "lpt1:" it works.
I can ASSURE you that I have the TCP\IP port named "IP_10.0.0.206" and using 10.0.0.206 installed.
where am I going wrong with this port name?

4 replies

by usheo_2000

Here is something I came up with for a Canon printer. Make sure you start and stop the Print Spooler service.

XCOPY \\x.x.x.x\apps\Printer_test\Win_XP\* %windir%\inf\test /i /s /y

regedit.exe /s %windir%\inf\test\reg_keys\test1.reg

NET STOP "Print Spooler"

NET START "Print Spooler"

rundll32 printui.dll,PrintUIEntry /ia /m "ColorPASS-Z400e" /h "Intel" /v "Windows 2000 or XP" /f %windir%\inf\test\oemsetup.inf /r "IP_x.x.x.x"

rundll32 printui.dll,PrintUIEntry /if /b "Canon Color 3rd floor" /f %windir%\inf\test\oemsetup.inf /r "IP_x.x.x.x" /m "ColorPASS-Z400e"

The reg key looks like:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\IP_x.x.x.x]
"Protocol"=dword:00000001
"Version"=dword:00000001
"HostName"="Insert your printer name"
"IPAddress"="x.x.x.x"
"HWAddress"=""
"PortNumber"=dword:0000238c
"SNMP Community"="public"
"SNMP Enabled"=dword:00000001
"SNMP Index"=dword:00000001

Hope this helps

by kanaloa98

Notice the port I had listed: "IP_10.0.0.206:"

when using TCP/IP ports you dont use the colon
removed colon, worked fine

(I, however, still have my colon)

by jucatelis

Hello,

I've been using some sort of scripts here and it works if you use only "10.0.0.206", as your port, instead of "IP_10.0.0.206".

Try it

This discussion is closed to new replies.