Actually, you just confirmed my original post The documentation for SetPrinterDefault(), where it states "Note that if the printer involved was connected to using AddPrinterConnection(), you must include both the servername and the sharename" is absolutely, totally WRONG. The SHARENAME should NOT be passed as part of the "printer name" parameter! If you really read the documentation, and you are trying to set the default printer to a printer that you previously connected to with AddPrinterConnection(), specifying the sharename DOES NOT WORK...

Believe me, I just spent countless hours verifying this.

On the otherhand, the documentation is correct IF you are not specifying a network shared printer. So some of you will have had no problem with this command... Or, if you were lucky enough to NOT read the sentence "Note...", then you will have luckily stumbled into the correct syntax