So I’m trying to make sure this driver is installed if a scanner is plugged in. So there is one model we use so I was just checking USB devices and looking for it. Simple enough. Now I need to basically check if the driver is already installed. If I go in device manager, the device will have a warning symbol by it but if I browse and point it to the driver folder, all will be fine. How can I do this in Powershell? If this is plugged in, direct the device manager to look for the driver in INSERT FILE LOCATION here. I really want to make sure it’s broken before I make it re-install the driver to save some time.

9 Spice ups
Get-WmiObject Win32_PNPEntity | Where-Object{$_.Availability -eq "11" -or $_.Availability -eq "12"} | Select Name,Availability

or

Get-CIMInstance Win32_PNPEntity | Where-Object{$_.Availability -eq "11" -or $_.Availability -eq "12"} | Select Name,Availability

11 is not installed, 12 is install error.

EDIT: Added Get-CIMInstance

1 Spice up

Awesome, I’ll let you know how this goes!

1 Spice up

Didn’t seem to work. I’ve attached a screenshot of what state it’s in though. Changing your script to 28 didn’t seem to work sadly.scanner2.png