Yep, copied from the 4.51 CHM file from ScriptLogic.

Was going to say PRINTERNAME, but the manual said SHARENAME when the connection was created with the AddPrinterConnection function so I gave that as example.

Regardless, seems he got it working which is what he wanted.

I haven't added a printer or set a default printer in a LONG time now via script so didn't have solid recent experience to contradict.