Script to change multiple printer drivers on print server

Posted on 2011-04-19
Last Modified: 2012-06-27
Windows 2008 Server with approx 350 print queues. Majority of print queues are using  the HP universal printer driver 4.7 I need to change them all to HP Universal Printer driver 5.2.
Doing each one individually is very time consuming taking about 90 seconds for each.

Does anyone have a script that could do the full 350 in one go?

Thank You!
Question by:vourneenward
    LVL 13

    Expert Comment

    Are you using the version specific driver "HP Universal Printing PCL 6 (v5.0)". The version is in the (). If so you probably making your life a lot harder. You should be using the generic UPD driver. That way you could be updating the print server driver once and all queues will update the latest driver version installed. Here's documented here: See the section titled "Installation to allow HP UPD version control".


    Author Comment

    thanks connectex but changing the driver is not an option.
    LVL 5

    Accepted Solution

    The article below explains how to update UPD via command line:

    C:\>rundll32%systemroot%\system32\spool\drivers\x64\3\hpmux083.dll,UpdateStaticModePrinter "printer name here" /q

    - To list all the printers on your server so u can put it in a batch file with the command, use the script or the command below:

    net view printservername | find /i "print" > c:\printers.txt

    The other way is using  prndrvr.vbs that MS put it under “C:\Windows\System32\Printing_Admin_Scripts\en-US” on the printer server, which you can use it to remove a driver to specific printer and add another one, but  it will need more prep work

    Cscript prndrvr.vbs -a -m “driver name” –v 3 –e “windows xx” –I “path to inf file” –h “path to driver”


    Author Closing Comment

    Thank You!
    LVL 5

    Expert Comment

    My pleasure!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
    Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
    This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
    This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now