Author Posts

September 29, 2017 at 6:04 pm

I need a script to look at all printers find the ones with printdriver from company "x" and remove the driver and the printer.

for win8 and newer I see remove-printer and remove-printdriver... any ideas for win 7 how I can do this in POSH

thanks as always

September 29, 2017 at 7:22 pm

You probably could pull this info using WMI or CIM. You could then remove the driver using that info but I don't know if you can actually uninstall the printer.

September 29, 2017 at 7:30 pm

I didn't see a method to remove the driver.. any examples?

September 29, 2017 at 7:38 pm

Take a look at

Get-CimInstance -ClassName Win32_PrinterDriver

, there are some fields that give you a path to the driver files you could delete using


October 3, 2017 at 3:56 am

If it's a 3rd party driver, you can try looking for it with pnputil.

October 3, 2017 at 1:38 pm

Hello scott s,
Update your powershell version on your windows 7.
You will be able to use Get-PrinterDriver & Remove-PrinterDriver

October 3, 2017 at 1:50 pm

Those 2 commands are not for win7, just 8 and up.

But thanks to everyone I got it figured out