See for example UnmapPrinters() - Removes mapped printers not listed in an .INI file for a sample .INI file. I use the same structure to map printers, too. You could even add another value to denote the groups that will get each particular printer as a default printer.
_________________________
There are two types of vessels, submarines and targets.