How many machines are we talking about? If the number is not too large it might be easiest to use the @WKSTA macro to determine what printer to map. If practical the machines could be renamed using a scheme which allows checking just a substring of the name (if they aren't already suitably named). For example, at our site the first part of the machine name identifies the department. I could therefore map the "Kyo_MCSD" printer for all workstations whose name begins with "MCSD_".