New
#21
Chev65, yes those suggestions are valid, however as stated in the "to address other possible questions" post i made last, we have so many slow WAN links, that we don't want to run a centralized print server, which is what typical GPO based printer installs utilize. Setting up a local IP printer port on each machine to the local IP/network printers works faster, cuts down traffic on our already slow WAN links, and is not affected by a WAN link outage.
WindowsStar: the scripts are run via a domain based GPO that runs a unique computer startup script for each respective site's specific printers. I only have to assign a pc to it's site domain OU and it applies the startup script to that pc (effective at next restart that is).
the registry check is done by the script on each local machine. in XP anyways, each printer has a registry entry for the name of the printer, if you do a simple FIND | REG QUERY for that reg key, you'll either get a successful find which results in error level 0 which means the printer is already installed and the script skips on to the next loop and checks to see if the next printer in the list is installed. If a printer is not there, it proceeds with the cscript/prnport/printui scripting to install the printer.
the printer reg check from the script i posted originally:
FIND | REG QUERY "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\!P!"
IF ERRORLEVEL 1 (
so to answer your question, the registry check runs on the local machine to see if the desired printers are installed or not, if not, it installs them