none
Unable to get, Remove-PrinterDriver -Name "PS Driver for Universal Print" -RemoveFromDriverStore to work RRS feed

  • Question

  • Hello,

    We are trying to accomplish removing a driver package from the driver store with PS. Manually in the print management applet we would highlight the driver and select "Remove Driver Package". This does what we need, however we want to accomplish this for 100's of servers. When we use this PS cmd, it does not remove the files located in: C:\Windows\System32\spool\drivers\x64\3, when we manually remove the driver package it removes the manufacture files. Here is the cmd we are using:

    PS C:\windows\system32> Remove-PrinterDriver -Name "Xerox*" -RemoveFromDriverStore
    PS C:\windows\system32> Remove-PrinterDriver : Access was denied to the specified resource.
    At line:1 char:1
    + Remove-PrinterDriver -Name "Xerox*" -RemoveFromDriverStore
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : PermissionDenied: (MSFT_PrinterDri... "Windows x64"):ROOT/StandardCimv2/MSFT_PrinterDriver) [Remove-PrinterDriver
       ], CimException
        + FullyQualifiedErrorId : HRESULT 0x80070005,Remove-PrinterDriver
    
    PS C:\windows\system32> Remove-PrinterDriver -Name "Xerox*" -RemoveFromDriverStore
    PS C:\windows\system32>

    The above fails for xerox (with DA), but seems to actually work. Can you let me know what we are missing for the Ricoh package?

    Thanks

    Pete


    Pete

    Friday, October 14, 2016 12:20 PM

Answers

  • Printer drivers tend to be manufacturer-specific. You will need to contact the vendor.

    -- Bill Stewart [Bill_Stewart]

    Friday, October 14, 2016 1:16 PM
    Moderator