Avatar of Jon DeVito
Jon DeVito asked on

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
Windows BatchPrinters and Scanners

Avatar of undefined
Last Comment
Jon DeVito

8/22/2022 - Mon
ASKER
Jon DeVito

Just some more info, I need this to work on both Windows XP & Windows 2000.

Thanks again.
Gastone Canali

You need to create a logon script (ex.: logon.cmd) and associate to your user
 follow the instruction here:
http://www.windowsnetworking.com/articles_tutorials/Logon-Scripts-Pure-Mixed-Active-Directory-Environments.html

and the script for xp and 2000 is in the code snipper
bye Gas

@echo off
:: logon.cmd
:: simple print install script for xp an 2000
RUNDLL32.EXE printui.dll,PrintUIEntry /q /u  /in  /n "\\Win2003FS-NJ\Brother9420"
RUNDLL32.EXE printui.dll,PrintUIEntry /q /u  /in  /n "\\Win2003FS-NJ\HP5850"er
RUNDLL32.EXE printui.dll,PrintUIEntry /q /u  /in  /n "\\Win2003FS-NJ\HP2200-Back"
RUNDLL32.EXE printui.dll,PrintUIEntry /q /u  /in  /n "\\Win2003FS-NJ\HP2200-Front"
RUNDLL32.EXE printui.dll,PrintUIEntry /q /u  /in  /n "\\Win2003FS-NJ\HP4240-Inv"
RUNDLL32.EXE printui.dll,PrintUIEntry /q /u  /in  /n "\\Win2003FS-NJ\HP4240-Front"
::End script

Open in new window

Gastone Canali

logon.cmd assign it to all your users
Bye Gas
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER
Jon DeVito

Thanks I will definitely try this, I have 2 questions with this though:

First, is there a way for it to check if the computer has the printer installed already & skip the install if it does?
Second, is there a way for me to load the drivers locally on each computer? We print so much we wind up crashing the print spooler pretty often.

Thanks again!
Jon
ASKER CERTIFIED SOLUTION
Gastone Canali

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
Jon DeVito

Thanks so much, I'm back in the office tomorrow & I will test it out & let you know what happens!