Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

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

$
0
0

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


Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>