Changing printer drivers

Occasionally, print drivers need to be upgraded or changed for some reason. When using a print server, this is significantly simpler because the print server holds the printer driver, which means that we do not need to install the driver on all of the client machines.

In this example, we will be changing the print driver from a PCL6 driver to a PS driver for the same model printer as used in the previous recipe.

Getting ready

In this recipe, we will update the driver of the printer created in the preceding Setting up and sharing printers recipe.

How to do it...

To change the print driver, perform the following steps.

  1. Install the print driver:
    Add-PrinterDriver -name "HP LaserJet 9000 PS Class Driver"
  2. List the installed printers ...

Get Windows Server 2012 Automation with PowerShell Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.