Installing a Network Printer Remotely
This is a discussion about Installing a Network Printer Remotely in the Everything New Technology category; 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.
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?
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 in our website and join the conversation
This subject has been archived. New comments and votes cannot be submitted.