Above you are using the AddPrinterConnection function. There is also and DelPRinterConenction function that lets you delete the printer you specify.
What I did for our (still in BEAT testing) logon script is enumerate all network printers at the start of the script, list all needed printers during the script even if they are already mapped, compare both lists and delete everything that is in the "old" list and not in the "new" list.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.