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.<\/p>","upvoteCount":9,"answerCount":4,"datePublished":"2019-04-04T09:42:51.000Z","author":{"@type":"Person","name":"robdixon","url":"https://community.spiceworks.com/u/robdixon"},"suggestedAnswer":[{"@type":"Answer","text":"
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.<\/p>","upvoteCount":9,"datePublished":"2019-04-04T09:42:51.000Z","url":"https://community.spiceworks.com/t/powershell-driver-checking-for-usb-scanner/705751/1","author":{"@type":"Person","name":"robdixon","url":"https://community.spiceworks.com/u/robdixon"}},{"@type":"Answer","text":"
Get-WmiObject Win32_PNPEntity | Where-Object{$_.Availability -eq \"11\" -or $_.Availability -eq \"12\"} | Select Name,Availability\n<\/code><\/pre>\n
Advertisement
or<\/p>\n
Get-CIMInstance Win32_PNPEntity | Where-Object{$_.Availability -eq \"11\" -or $_.Availability -eq \"12\"} | Select Name,Availability\n<\/code><\/pre>\n