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).



  1. 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. Forget it… i found the issue… you need powershell v4. By default, Windows 7 has powershell v2.

  3. Just figured out how to install and run this script on W10: One must:
    1) Save the above code as the following file: RemoveChromeRecentPrinter.psm1
    2) Copy the above file to: C:\Program Files\WindowsPowerShell\Modules
    3) Close/Exit Google Chrome browser
    (and then backup your user profile directory just in case of an issue!).
    4) Open a PowerShell window and run the command:
    Remove-ChromeRecentPrinter (plus any of the optional parameters listed
    above in the code).
    5) Reopen Chrome and verify that the ‘Recent Printers’ have been removed.

    The above worked great on my W10 machines.
    Thank you Christopher Kibble!

    • Hey J.T. – thanks for your comment and sorry I’m late responding! Glad you got it working!

  4. Pingback: Google Chrome não usa a impressora padrão do sistema – Eduardo Mozart

  5. Good Afternoon,

    after removing the printers the ” Save as PDF” gets disabled. not sure how to get it back


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.