additionally, you probably should read how to use UDFs from the FAQ forum.

also check addprinterconnection() from kixtart manual as it fits to your script just fine.

then, one does not need to be admin to add a printer for himself.
_________________________
!

download KiXnet