Change Print Driver En Masse - Print Management

Hello all,

I’m looking for assistance in automating the process of updating printer drivers in Print Management en masse. Currently I manually export my printer list and use excel to filter on the drivers, then create a csv file and call that. I’d love to automate the process of exporting the printers with a specific driver.

 

$PrinterCSV = Import-CSV -Path “C:\printerlist.csv”

foreach($Printer in $PrinterCSV)
{
$CurrentPrinter = $Printer.Name
Write-Host “Updating printer driver to ‘HP Universal Printing PCL 6 (v6.9.0)’ on $CurrentPrinter”

Set-Printer -Name $CurrentPrinter -DriverName “HP Universal Printing PCL 6 (v6.9.0)”

}

 

Kevin, welcome to Powershell.org. Please take a moment and read the very first post on top of the list of this forum: Read Me Before Posting! You’ll be Glad You Did!.

When you post code or error messages or sample data or console output format it as code, please.
In the “Text” view you can use the code tags “PRE”, in the “Visual” view you can use the format template “Preformatted”.
Thanks in advance.

What is your question?