Add a printer driver to a pc via powershell

How can I add a driver to a PC using power shell. I have the script to add the printer from the \\share but the driver is not working. I'd like to prep it before it connects so I don't get the error message.

Thanks!
NjacobeAsked:
Who is Participating?
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.

Emmanuel AdebayoGlobal Windows Infrastructure Engineer - ConsultantCommented:
0

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
Phil BossmanSenior Client Systems AdminstratorCommented:
What version OS's are you using, both for the client and print server?  Is there a print cluster involved?  Also which version of Powershell are you using on both the client and server?  is Powershell remoting enabled?

The answer will dictate what the answer can be,  If you are using the latest OS, Windows 8 and Server 2012, then @Emmanuel's answer should get you going.

but if you're using older OS there may be a few things hindering you.

At a high level,  the biggest problems I've seen with this is mapping the printer with the correct credentials and group policy enabling where drivers can be auto installed from.
0
NjacobeAuthor Commented:
It's w7 to server 2008 r 2
Ps version is 2.
We have a ton of other print shares that we connect to and the work. It seems to be the specific canon printers with this issue.
0
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
Microsoft Legacy OS

From novice to tech pro — start learning today.