well, basically it's ok.
instead of:
Addprinterconnection("...") =0

should use something like:
$trash = Addprinterconnection("...")

and one word about difference between addprinter and setdefault.
addprinterconnection takes parameter \\server\printershare and setdefaultprinter takes \\server\printerNAME

that's the thing that has got many confused.
_________________________
!

download KiXnet