Add windows printer without user input in login script

I am running the below script on a domain.  Users that do not already have the printer driver installed are prompted with a windows notification/warning about downloading the printer driver.  Is there a way to make this seemless so the user is not prompted when the script runs during login?

It seems to only occur when driver is intalled the first time or when it is changed.
sub AddPrinter(strPrinterUNC)
     ' Connecte to the network printer
     ' e.g. : call AddPrinter ("\\PrintServer\FinanceCopy")

     on error resume next
     objNetwork.AddWindowsPrinterConnection strPrinterUNC
     If Err.Number = 0 Then
           WriteLog(" Success: Connect to printer: " & strPrinterUNC)
           WriteLog(" Failed:  Connect to printer: " & strPrinterUNC)
     end if
     on error goto 0
end sub

Open in new window

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.

There are many ways to make that not pop up, but I don't think you'll like any of my ideas..

Use a driver that's built-in to the OS.  HP LJ4 drivers can run nearly any B&W laser on the planet, and they're very stable, and have been built-in to Microsoft OSes since like 95 or 98.

Make the driver install part of your base install for all machines on the network.

Deal with end-user complaints the very first time the printer is installed, it'll eventually go away after the printer gets installed everywhere.

There's likely many more, but those are the best ones I've got..


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
flg8tor96Author Commented:
thanks for your help and reply to my question.
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
Windows XP

From novice to tech pro — start learning today.