Hi,
I am trying to install printer to a remote machine using vbs scripts. I can
install on local machine, but not on remote machine under domain setting.
Here is my script:

cscript prndrvr.vbs -a -m "HP LaserJet 4240 PCL 6" -s hptest.domain.com -h
"C:\HP4240\english\Drivers\Win32_2000_XP_S2003\PCL6" -i
"C:\HP4240\english\Drivers\Win32_2000_XP_S2003\PCL6\hpc4x50c.inf" - username
-w pwd

I get the following error messsage:
Unable to add printer driver HP LaserJet 4240 PCL 6 Win32 error code 87

Alan from Microsoft says it has to do with "Enabling Delegated
Authentication". If I delegate using GPO, it might compromise our network
security since the delegation is also for a computer account. I've read
another article to "Enable Constrained Delegation" which may work better.
However, which services do we add to be trusted for delegation for me to
install printer on remote machine? Any suggestions or comments greatly
appreciated. Thanks!

Re: Enabling Delegated Authentication by S

S
Mon Jul 23 13:32:16 CDT 2007

thats not your script... thats only the command line to run the script



"Archi3" <Archi3@discussions.microsoft.com> wrote in message
news:BB0A80BE-C7C8-4691-A1A2-03EB31E53A48@microsoft.com...
> Hi,
> I am trying to install printer to a remote machine using vbs scripts. I
> can
> install on local machine, but not on remote machine under domain setting.
> Here is my script:
>
> cscript prndrvr.vbs -a -m "HP LaserJet 4240 PCL 6" -s hptest.domain.com -h
> "C:\HP4240\english\Drivers\Win32_2000_XP_S2003\PCL6" -i
> "C:\HP4240\english\Drivers\Win32_2000_XP_S2003\PCL6\hpc4x50c.inf" -
> username
> -w pwd
>
> I get the following error messsage:
> Unable to add printer driver HP LaserJet 4240 PCL 6 Win32 error code 87
>
> Alan from Microsoft says it has to do with "Enabling Delegated
> Authentication". If I delegate using GPO, it might compromise our network
> security since the delegation is also for a computer account. I've read
> another article to "Enable Constrained Delegation" which may work better.
> However, which services do we add to be trusted for delegation for me to
> install printer on remote machine? Any suggestions or comments greatly
> appreciated. Thanks!