Re: vbs to configure printer to remote machine

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks for the post. Pls. find below my cscript and message:

cscript prndrvr.vbs -a -m "HP LaserJet 4240 PCL 6" -h "C:\Documents and
Settings\archi3\Desktop\HP4240\english\Drivers\Win32_2000_XP_
S2003\PCL6\" -i "C:\Documents and Settings\archi3\Desktop\HP4240\english\
Drivers\Win32_2000_XP_S2003\PCL6\hpc4x50c.inf"
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Unable to add printer driver HP LaserJet 4240 PCL 6 Win32 error code 123

Pls. review if my syntax is correct and/or if I need to add to it. Thanks
for your help!

"Alan Morris [MSFT]" wrote:

The issue here is you will need to enable delegation on your domain which
will allow the machine running the script to access the machine with the
driver file using the authentication of hptest.domain.com machine. This is
called delegation and I don't run our domain here so in order to install
drivers on a remote machines, I have to copy the drivers locally to the
machine that will be installing the printer. If you are the domain admin
you can enable delegation in the domain but I have know idea how to do this.

You also only need one \ for the directory name. two \\ just for the server

Make sure you can install the driver on the local machine before attempting
this on a remote. The remote path works since delegation is not required
for the local machine.

--
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.

"Archi3" <Archi3@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:58BD0CF9-0B2F-49F4-AA50-91D2843AD0D5@xxxxxxxxxxxxxxxx
Yes, I had figured out yesterday I had to install driver first, use
prnmngr.vbs next to intall printer. However, I was not able to go
further.

cscript prndrvr.vbs -a -m "HP LaserJet 4240 PCL 6" -s hptest.domain.com -h
"\\servername\\Install\\Printers\\HP4240_BW\\english\\Drivers\\Win32_2000_XP_S2003\\PCL6\\"
-i
"\\servername\\Install\\Printers\\HP4240_BW\\english\\Drivers\\Win32_2000_XP_S2003\\PCL6\\hpc4x50c.inf"
-u archi3 -w password

Message was: Unable to add printer driver HP LaserJet 4240 PCL 6 Win32
error
code 87

I found Error Code 87 meant an invalid parameter within the script and
that
the new printer drivers have different .inf format which do not work with
WMI.
http://forums.techarena.in/showthread.php?t=615236

Pls. provide feedback. Thanks for your help with this!


"Alan Morris [MSFT]" wrote:



Install the driver using prndrvr.vbs

I'll help you a bit more so you don't have to post again. Add the port
using prnport.vbs

so
prnport.vbs Adds or configures a port

prndrvr.vbs Used to add signed drivers only. unsigned drivers cannot be
installed using WMI provider.

prnmngr.vbs Creates and deletes printers

prncnfg.vbs configures the printer

prnqctl.vbs Pause, resume printers

prnjobs.vbs Pause, resume jobs

--
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.

"Archi3" <Archi3@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3D6E8352-3D93-4313-B250-2D68C6BAD083@xxxxxxxxxxxxxxxx
Thanks for the message. I figured out that I cannot add printer to a
remote
machine using the command prncnfg.vbs. I had to use prnmngr.vbs
However,
I
am faced with another error message:

Unable to add printer HP printer Error 0x80041001 Generic failure
Operation PutInstance
Provider Win32 Provider
Description The printer driver is unknown.
Win32 error code 1797

Could anyone pls. advise - thanks!

"Byte" wrote:

Responses will not likely be forthcoming untill you explain exactly
what you are trying to do. Giving an error message without an
explanation is useless for anyone to be able to assist you.
--
XP - WNP
Today is the first day of the
rest of your life.



"Archi3" wrote:

Hi,
My script is as follows:
cscript prncnfg.vbs -t -s wgan-xw1.domain.com -p "Max 4240
printer" -r
IP_10.13.128.53

Running it as an administrator, I get the following message:
Unable to get configuration for printer Max 4240 printer Error
0x80041002 Not
found
Operation GetObject
Provider CIMWin32
Description
Win32 error code

Any help or suggestions will be greatly appreciated! Thanks






.



Relevant Pages

  • RE: cant install the printer driver in SBS2003
    ... the newsgroups are staffed weekdays by Microsoft Support professionals to ... does not support Kernel mode print drivers. ... newsgroups so that they can be resolved in an efficient and timely manner. ... can't install the printer driver in SBS2003 ...
    (microsoft.public.windows.server.sbs)
  • Re: lifecam vx6000
    ... English "USB20 Camera " ... the ingredients for the OS to install a driver, ... SN9C202 Drivers ... Microsoft to fix the issue. ...
    (microsoft.public.windowsxp.hardware)
  • Re: KB911280 update problem
    ... Microsoft is working on an amended patch which will address this issue. ... Microsoft advises anyone affected by this to not install the patch and to ... That script is broken by the patch. ... He said he could not write a bug report ...
    (microsoft.public.windowsupdate)
  • Re: Unable to install the printer
    ... Microsoft Enterprise Platform Support ... > Some drivers are getting installed but some drivers are ... > actually we install 2 type of drivers. ...
    (microsoft.public.windows.server.clustering)
  • Re: lifecam vx6000
    ... the ingredients for the OS to install a driver, ... software package you installed. ... SN9C202 Drivers ... Microsoft to fix the issue. ...
    (microsoft.public.windowsxp.hardware)