Installing a Network Printer Remotely

I'm attempting to write a script to install a networked printer remotely on XP machines. This works: rundll32 printui. dll,PrintUIEntry /if /b Test Printer /f \\XXX. XX. XXX. XX\download\4600driver\hp4600p6.

Everything New Technology 1823 This topic was started by ,


data/avatar/default/avatar34.webp

198 Posts
Location -
Joined 2001-06-03
I'm attempting to write a script to install a networked printer remotely on XP machines.
 
This works:
 
rundll32 printui.dll,PrintUIEntry /if /b "Test Printer" /f \\XXX.XX.XXX.XX\download\4600driver\hp4600p6.inf /r "lpt1:" /m "HP Color LaserJet 4600 PCL 6" /Z
 
But I want to change the port from "lpt1:" to an IP address for IP printing. However, when I change it to "IP_XXX.XX.XXX.XX", I receive a "The arguments are invalid" error message after Windows copies files and no printers are added to the printers folder.
 
Any idea what the correct syntax is to change the port to an IP address?

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.