Remove Recent Printers from Chrome Preferences File (PoSH)

Chrome does not remove “Recent Printers” from the print option box when a user or an administrator deletes a printer from the machine. This can cause problems when a printer is removed by policy or is updated with a new print server name, but a user continues totry and print to the old server. This script will remove the printer from the PREFERENCES file. You can provide no printer list and all Recent Printers will be removed, or you can specific a specific printer.

(Edit: Jonathan reports in the comments below that this may require at least PS4 and doesn’t run on PS2. I haven’t tested myself, but test for yourself if you need to run this on earlier versions of PS).


3 thoughts on “Remove Recent Printers from Chrome Preferences File (PoSH)

  1. Jonathan Tremblay

    I get the following error:

    The property « PositionalBinding » is unavailable for this type « System.Management.Automation.CmdletBindingAttribute »
    At the level: C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ClearCachePrinterChrome\ClearCachePrinterChrome.psm1 :
    72 Caractère : 16
    + [CmdletBinding <<<< (PositionalBinding = $true,
    + CategoryInfo : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyAssignmentException

  2. Jonathan Tremblay

    Forget it… i found the issue… you need powershell v4. By default, Windows 7 has powershell v2.

Leave a Reply