Jump to content

Installing Printer


Recommended Posts

im trying to automate installing a network printer.

The installation starts ok and installs the driver but once the driver is installed i get an error.

RUNDLL32 printui.dll,PrintUIEntry /if /b "\\pcprint\lw7th" /r "128.40.42.150" /f "%windir%\inf\ntprint.inf" /m "HP LaserJet 5000 Series PS"

the error windows gives is -> error is invalid arguments

The printer is set up correctly, you can install it manually and print to it without any problems.

Link to comment
Share on other sites


If I run your command i get the following error:

Operation could not be completed.  Either the printer name was typed incorrectly, or the specified printer has lost its connection to the server.  For more information, click Help.

Which is from /b "\\pcprint\lw7th", printer display names cannot contain \'s.

Also you need to create the Standard TCP/IP port before installing.

Link to comment
Share on other sites

  • 2 months later...
Question: Why not simply integrate the driver files instead of trying to run an install?

i want to ad some HP drivers to the unattended xp cd. Can it be done like this?:

DriverSigningPolicy=Ignore
OemPnPDriversPath="Drivers\000_SMBus;Drivers\001_MemCtl;Drivers\002_GART;Drivers\003_IDE;Drivers\004_Ethernet;Drivers\005_AudioDrv;Drivers\006_Display;Drivers\007_Printers"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...