Hello,
I am trying to add a network printer via a vbscript but the printer server
requires authentication. If I just run:
wshnetwork.addwindowsprinterconnection "\\samba\hpintel"
I get the "Permission Denied" error message.

For some reason the addwindowsprinterconnection function doesn't accept any
username\password arguments while the addprinterconnection function (not
windows) does accept such arguments.
I also tryed using the addprinterconnection function as in:
wshnetwork.addprinterconnection "LPT1", "\\samba\hpintel", true,
"cs\avivgur", strPassword
The script completes without errors but no printer is added to the "Printers
and Faxes" window.

Is there any way to apply a username and password for authentication with
the printer server and to have the printer appear in the "Printers and
Faxes" window?

Thanks in advance,
Aviv