batch file

Hello EE,

I like to have a batch file that will add all the printers to the computer.
Most the printers are on the network and we have printer queue setup.
all the computer are x64 BIT windows 7
SR ZakNetwork Solutions Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

What is the environment?
Domain ad GPO/GPP can be used to push printers to clients.
Are you using a print server that will distribute the drivers?
See if the following example can help you build on what you want.

The issue mainly deals with driver install and the rights of who will be running this script/batch file.

There are other examples online.
Though in ad environment, GPO/GPP is better managed including providing you the flexibility of pulling, reallocating printers from a centra tall management.
Fred MarshallPrincipalCommented:
Here is a one-line PowerShell command that can be saved as a .PS1 script file.
Add-Printer -Name "4250B" -DriverName "HP LaserJet 4250 PCL6 Class Driver" -PortName ""

Open in new window

So, you'd have as many lines as you'd have printers to add.
I've tried this and it works to add new printer names for an existing network printer at the specified IP address.
In this case, I knew the DriverName as well.  So that may be an issue for you.
The name can be anything it appears....

Get-Help Add-Printer doesn't add much but is always worth reviewing.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

SR ZakNetwork Solutions Author Commented:
I am using Print Server, I don't want to push it through the GPO as that will fall back the responsibility to admins, I want to have a batch file and the technicians can just run it for the users. I hope that can work.

Thanks again
please clarify the fall back, you could define the techs as printer admins. delegating them the rights to manage printer deployment.
Fred MarshallPrincipalCommented:
auto close
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Printers and Scanners

From novice to tech pro — start learning today.