3
Good afternoon guys, I have in my environment a print server with a total of 63 printers installed and shared on the network, I would like a script for automating the installation of these printers on the company machines, so far I have done the script below in . bat, but it’s only installing 1 printer, unless I repeat the code block 63 times to make with each one I wanted a way to automate it to install all printers from the print server (checking if they are installed before installing to install no more than 1 time) but I could not think of a syntax and do not want to have to repeat this code block 63 times
SET IMPRESSORA=\\HOSTNAME_SERVIDOR\COLOR
wmic printer get name /value | findstr /I /E "%IMPRESSORA%"
IF NOT %ERRORLEVEL% == 0 Rundll32 printui.dll,PrintUIEntry /in /n %IMPRESSORA%
This "COLOR" is the name of a printer you used as a test in your Script?
– user82136
this, is an example of one of the printers
– Rafael Xavier Suarez