To avoid any further confusion, I suggest minor ammendments to the above. AddPrinterConnection() should make no mention of a "Printer Name" at all, simply the "Share Name". Likewise, the inverse is true for SetDefaultPrinter() whereby there should be no reference to "Share Name" except to describe its differences in comparison to AddPrinterConnection().

Thanks for the suggestion
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.