Cannot install printer using inf file

G

Guest

In reference to Microsoft KB article 314486, I have completed creation of
port and adding printer driver when adding printer to a remote machine.
However, it gives me 'Arguments are invalid' message when I try 'Installing
printer using inf file.'

Note that this worked locally but when I added /c to intall on remote
machine, it did not work. The following is my command line syntax:

rundll32 printui.dll,PrintUIEntry /if /b "Test Printer" /c\\hptest2 /f
\\server\IS\Install\Printers\HP4240_BW\english\Drivers\Win32_2000_XP_S2003\PCL6\hpc4x50c.inf /r "IP_10.23.123.33" /m "HP LaserJet 4240 PCL 6"

Any suggestions and/or comments as to why this argument would be invalid is
greatly appreciated. Thanks!
 
A

Alan Morris [MSFT]

You will need to enabled delegation on your domain to allow machine 1
(machine running the script) to assess machine 3 (machine with drivers)
using the credentials of machine 2 (the remote machine where the printer is
getting added).

Or copy the driver files locally to machine 2

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

I enabled delegation for machine1 and machine 2. Using the code below, it
worked with one remote workstation I tested , but does not install with
another machine I tested, which creates the confusion. Syntax is correct,
permissions are open, I don't know what the one working machine has vs. the
one that doesn't.

When I take out the remote machine command /c\\hptest2 and run the command
locally, it works. It would be nice to have it work to install not only on
one remote machine, but on all others. They are the same machines.
 
G

Guest

Ok, I got it to work remotely now. It helps to get an explanation though if
there is one. I used the PrintUIEntry command line locally from the first
post to install printer. I deleted the printer and tried to re-install
remotely adding /c\\hptest2 and it finally worked. I am not sure if command
works ONLY after I have ran the commands and installed locally the first
time.

Thanks for your previous response.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top