• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4925
  • Last Modified:

Script to change multiple printer drivers on print server

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!
0
vourneenward
Asked:
vourneenward
  • 2
  • 2
1 Solution
 
connectexCommented:
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: http://h20338.www2.hp.com/hpsub/downloads/HP_UPD_System_Admininistrator_Guide_Rev8.pdf. See the section titled "Installation to allow HP UPD version control".

-Matt-
1
 
vourneenwardAuthor Commented:
thanks connectex but changing the driver is not an option.
1
 
rov17Commented:
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

http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=120&prodSeriesId=503548&prodTypeId=18972&objectID=c01841761


- 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

http://www.isbgroup.com/PrinterAudit/


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”

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/prndrvr.mspx?mfr=true

0
 
vourneenwardAuthor Commented:
Thank You!
0
 
rov17Commented:
My pleasure!
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now