Question : I need to install multiple network printers using AD or a startup batch file.

Right now my script looks like this:

cscript %systemroot%\system32\prnmngr.vbs -ac -p "\\Win2003FS-NJ\Brother9420"
cscript %systemroot%\system32\prnmngr.vbs -ac -p "\\Win2003FS-NJ\HP5850"
cscript %systemroot%\system32\prnmngr.vbs -ac -p "\\Win2003FS-NJ\HP2200-Back"
cscript %systemroot%\system32\prnmngr.vbs -ac -p "\\Win2003FS-NJ\HP2200-Front"
cscript %systemroot%\system32\prnmngr.vbs -ac -p "\\Win2003FS-NJ\HP4240-Inv"
cscript %systemroot%\system32\prnmngr.vbs -ac -p "\\Win2003FS-NJ\HP4240-Front"

There are like 10 more printers for some people & doing it this way the script takes forever to print. I would rather be able to do this through AD but I wouldn't mind a script that would do the printer additions faster.

Thanks in advance!
Jon

Answer : I need to install multiple network printers using AD or a startup batch file.

1. ok try the new script
2. driver when printer is installed are local

bye gas
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
@echo off
:: logon.cmd
:: simple print install script for xp an 2000
:: only if the printer is not already installed
:: gastone canali
set prnServer=Win2003FS-NJ
set inst_CMD=RUNDLL32.EXE printui.dll,PrintUIEntry /q /u  /in  /n 
call :_PRN_CHK_inst "%prnServer%" "Brother9420"
call :_PRN_CHK_inst "%prnServer%" "HP5850"
call :_PRN_CHK_inst "%prnServer%" "HP2200-Back"
call :_PRN_CHK_inst "%prnServer%" "HP2200-Front"
call :_PRN_CHK_inst "%prnServer%" "HP4240-Inv"
call :_PRN_CHK_inst "%prnServer%" "HP4240-Front"
 
goto :_END
:_PRN_CHK_inst
   echo check for Prn "%~2" on server  "%~1"
   (reg query "HKCU\Printers\Connections\,,%~1,%~2" /v Server|find /i %1 ) 2>nul 1>nul || (%inst_cmd% "\\%~1\%~2"& echo Install  "\\%~1\%~2")  
 
goto :_EOF
:_EOF
:_END
Open in New Window Select All
Random Solutions  
 
programming4us programming4us