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
Habib ZakariaNetwork Solutions ArchitectAsked:
Who is Participating?
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.
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.
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Habib ZakariaNetwork Solutions ArchitectAuthor 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.