Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

vbs to configure printer to remote machine

 
   Soft32 Home -> Win3 Arch -> Print & Fax RSS
Next:  Multiple pages of print, print on one piece of pa..  
Author Message
Archi3

External


Since: Jun 27, 2007
Posts: 8



(Msg. 1) Posted: Tue Jul 10, 2007 6:36 am
Post subject: vbs to configure printer to remote machine
Archived from groups: microsoft>public>windowsxp>print_fax (more info?)

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
Back to top
Login to vote
Byte

External


Since: Mar 16, 2006
Posts: 333



(Msg. 2) Posted: Tue Jul 17, 2007 5:44 am
Post subject: RE: vbs to configure printer to remote machine [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
Back to top
Login to vote
Archi3

External


Since: Jun 27, 2007
Posts: 8



(Msg. 3) Posted: Tue Jul 17, 2007 6:12 am
Post subject: RE: vbs to configure printer to remote machine [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
Back to top
Login to vote
Alan Morris [MSFT]

External


Since: Oct 25, 2005
Posts: 494



(Msg. 4) Posted: Tue Jul 17, 2007 11:46 am
Post subject: Re: vbs to configure printer to remote machine [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.TakeThisOut@discussions.microsoft.com> wrote in message
news:3D6E8352-3D93-4313-B250-2D68C6BAD083@microsoft.com...
> 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
Back to top
Login to vote
Archi3

External


Since: Jun 27, 2007
Posts: 8



(Msg. 5) Posted: Wed Jul 18, 2007 2:16 am
Post subject: Re: vbs to configure printer to remote machine [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.DeleteThis@discussions.microsoft.com> wrote in message
> news:3D6E8352-3D93-4313-B250-2D68C6BAD083@microsoft.com...
> > 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
>
>
>
Back to top
Login to vote
Alan Morris [MSFT]

External


Since: Oct 25, 2005
Posts: 494



(Msg. 6) Posted: Wed Jul 18, 2007 7:23 am
Post subject: Re: vbs to configure printer to remote machine [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 RemoveThis @discussions.microsoft.com> wrote in message
news:58BD0CF9-0B2F-49F4-AA50-91D2843AD0D5@microsoft.com...
> 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 RemoveThis @discussions.microsoft.com> wrote in message
>> news:3D6E8352-3D93-4313-B250-2D68C6BAD083@microsoft.com...
>> > 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
>>
>>
>>
Back to top
Login to vote
Archi3

External


Since: Jun 27, 2007
Posts: 8



(Msg. 7) Posted: Thu Jul 19, 2007 3:54 am
Post subject: Re: vbs to configure printer to remote machine [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 DeleteThis @discussions.microsoft.com> wrote in message
> news:58BD0CF9-0B2F-49F4-AA50-91D2843AD0D5@microsoft.com...
> > 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 DeleteThis @discussions.microsoft.com> wrote in message
> >> news:3D6E8352-3D93-4313-B250-2D68C6BAD083@microsoft.com...
> >> > 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
> >>
> >>
> >>
>
>
>
Back to top
Login to vote
Alan Morris [MSFT]

External


Since: Oct 25, 2005
Posts: 494



(Msg. 8) Posted: Thu Jul 19, 2007 7:19 am
Post subject: Re: vbs to configure printer to remote machine [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

this error is
E:\>winerror 123
123 ERROR_INVALID_NAME <--> 0xc0000033 STATUS_OBJECT_NAME_INVALID

remove the \ in the -h parameter \PCL6\" to \PCL6"

I recommend simplifying the driver path.

md c:\hp4240
copy the files you want to install into this directory.




--
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.TakeThisOut@discussions.microsoft.com> wrote in message
news:1F6EB437-FFC1-4188-A804-3ABCA1A71BF2@microsoft.com...
> 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.TakeThisOut@discussions.microsoft.com> wrote in message
>> news:58BD0CF9-0B2F-49F4-AA50-91D2843AD0D5@microsoft.com...
>> > 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.TakeThisOut@discussions.microsoft.com> wrote in message
>> >> news:3D6E8352-3D93-4313-B250-2D68C6BAD083@microsoft.com...
>> >> > 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
>> >>
>> >>
>> >>
>>
>>
>>
Back to top
Login to vote
Archi3

External


Since: Jun 27, 2007
Posts: 8



(Msg. 9) Posted: Thu Jul 19, 2007 9:24 am
Post subject: Re: vbs to configure printer to remote machine [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It worked! Now I'm trying to add printer, but no luck. Hope you can get me
through this last script.

cscript prnmngr.vbs -a -p "HP 4240 printer" -m "HP LaserJet 4240 PCL6" -r
IP_10.23.23.23

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

Also got this link to enable delegation
http://technet2.microsoft.com/WindowsServer/en/Library/72612d01-622c-4...-ab4a-6
But just reading it, it compromises security since it is also for computer
account. Is there any other way for remote feature to work?

"Alan Morris [MSFT]" wrote:

> this error is
> E:\>winerror 123
> 123 ERROR_INVALID_NAME <--> 0xc0000033 STATUS_OBJECT_NAME_INVALID
>
> remove the \ in the -h parameter \PCL6\" to \PCL6"
>
> I recommend simplifying the driver path.
>
> md c:\hp4240
> copy the files you want to install into this directory.
>
>
>
>
> --
> 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.RemoveThis@discussions.microsoft.com> wrote in message
> news:1F6EB437-FFC1-4188-A804-3ABCA1A71BF2@microsoft.com...
> > 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.RemoveThis@discussions.microsoft.com> wrote in message
> >> news:58BD0CF9-0B2F-49F4-AA50-91D2843AD0D5@microsoft.com...
> >> > 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.RemoveThis@discussions.microsoft.com> wrote in message
> >> >> news:3D6E8352-3D93-4313-B250-2D68C6BAD083@microsoft.com...
> >> >> > 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
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>
Back to top
Login to vote
Alan Morris [MSFT]

External


Since: Oct 25, 2005
Posts: 494



(Msg. 10) Posted: Thu Jul 19, 2007 9:57 am
Post subject: Re: vbs to configure printer to remote machine [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I hope you figured this out already. Glad this is not my day job.

Anyone else got this???

Archi, the driver name is wrong as the message says. If you did not get
it, I will pinpoint it but sometimes you have to follow the error message.
Hint:look at the driver name between the two scripts.

--
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 DeleteThis @discussions.microsoft.com> wrote in message
news:62E2FDAF-6E55-427B-A683-9A19492DCF1B@microsoft.com...
> It worked! Now I'm trying to add printer, but no luck. Hope you can get
> me
> through this last script.
>
> cscript prnmngr.vbs -a -p "HP 4240 printer" -m "HP LaserJet 4240 PCL6" -r
> IP_10.23.23.23
>
> Unable to add printer HP4240 printer Error 0x80041001 Generic failure
> Operation PutInstance
> Provider Win32 Provider
> Description The printer driver is unknown.
> Win32 error code 1797
>
> Also got this link to enable delegation
> http://technet2.microsoft.com/WindowsServer/en/Library/72612d01-622c-4...-ab4a-6
> But just reading it, it compromises security since it is also for computer
> account. Is there any other way for remote feature to work?
>
> "Alan Morris [MSFT]" wrote:
>
>> this error is
>> E:\>winerror 123
>> 123 ERROR_INVALID_NAME <--> 0xc0000033 STATUS_OBJECT_NAME_INVALID
>>
>> remove the \ in the -h parameter \PCL6\" to \PCL6"
>>
>> I recommend simplifying the driver path.
>>
>> md c:\hp4240
>> copy the files you want to install into this directory.
>>
>>
>>
>>
>> --
>> 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 DeleteThis @discussions.microsoft.com> wrote in message
>> news:1F6EB437-FFC1-4188-A804-3ABCA1A71BF2@microsoft.com...
>> > 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 DeleteThis @discussions.microsoft.com> wrote in message
>> >> news:58BD0CF9-0B2F-49F4-AA50-91D2843AD0D5@microsoft.com...
>> >> > 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 DeleteThis @discussions.microsoft.com> wrote in message
>> >> >> news:3D6E8352-3D93-4313-B250-2D68C6BAD083@microsoft.com...
>> >> >> > 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
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>>
Back to top
Login to vote
ajayts1980

External


Since: Aug 07, 2007
Posts: 1



(Msg. 11) Posted: Tue Aug 07, 2007 2:50 am
Post subject: Re: vbs to configure printer to remote machine [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I am getting the exact similar problem and I havent been able to
figure this out. Could you please advise?

cscript prndrvr.vbs -a -m "HP LaserJet 2420 PCL 6" -h "\\<server path>
\HP LJ24x0 Series" - i "\\<server path>\HP LJ24x0 Series\hpc24x0c.inf"
cscript prnmngr.vbs -a -p "Printer name" -m "HP LaserJet 2420 PCL 6" -
r IP_<IP Address>
Back to top
Login to vote
Alan Morris [MSFT]

External


Since: Oct 25, 2005
Posts: 494



(Msg. 12) Posted: Tue Aug 07, 2007 10:01 am
Post subject: Re: vbs to configure printer to remote machine [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

How exact? and how similar?

which script is failing the driver installation or the printer installation?

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

<ajayts1980 RemoveThis @gmail.com> wrote in message
news:1186498216.304275.231910@o61g2000hsh.googlegroups.com...
>I am getting the exact similar problem and I havent been able to
> figure this out. Could you please advise?
>
> cscript prndrvr.vbs -a -m "HP LaserJet 2420 PCL 6" -h "\\<server path>
> \HP LJ24x0 Series" - i "\\<server path>\HP LJ24x0 Series\hpc24x0c.inf"
> cscript prnmngr.vbs -a -p "Printer name" -m "HP LaserJet 2420 PCL 6" -
> r IP_<IP Address>
>
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Changing Printer Processor - Hi. I have problems with my network printing jobs. My topic is..

LJ4300 Printer Network works only sometimes - Hi. I have a HP laseJet 4300 and a HP Laserjet 5M printers connected to our corporative network and their computers..

Client Printer redirection from NT machine to remote XP ma.. - I am using "Remote Desktop Connection" to connect to a remote machine running Windows XP. When I use "...

Cannot see shared printer on XP machine.... - I am in a real conundrum (sp?) here... This should be real easy but for some reason - it isn't!!!! I have an XP Pro..

Printing To Remote Printer with No Pc in remote location -.. - I have an office with a Cable drop to a Cable Modem with an ethernet connection to a Wireless router. In that room is ...

XP machine must supply credentials to connect to shared pr.. - We have a sales user who uses his own XP Pro laptop on our network. His office here is being renovated and he has had....
       Soft32 Home -> Win3 Arch -> Print & Fax All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]