why you use lpt at all?

if you can give addprinterconnection the printer server and the printers sharename all you need is addprinterconnection call.
and to set it default it's the same format:
\\server\share

can you tell, why you use this long script instead of just two lines?

cheers,
_________________________
!

download KiXnet