The AddPrinterConnection function wants the share name of the printer and SetDefaultPrinter wants the printer name. The name could be Printer1 but the share could be Printer2 so best practice would be to keep both the same to avoid any issues.

Did you check the names like I posted above? The printer you wanted there as default does not get added so you cannot set it as default.

I would advise you to alter the printer names and not use HP LaserJ, HP4150TNPCL6, etc… Decide on one standard naming procedure and keep the share names and printer names the same.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.