Hey everyone,
I need help looking for the solution to what I fear is a rare problem. Since nowadays people generally inject drivers when capturing a windows image, there is generally not a need for the script I’m trying to create. However in this case, I need to update drivers for multiple machines, with differing models, but the driver packages are downloaded to a folder that is on all of these machines. By hand, I would generally go to the device manager, Right click on the drivers that need to be updated, browse my computer for the driver software, and point to the folder. Windows would then of course search the folder for the driver files, and automatically update them for me. Is there anyway I can script that functionality?
I think this command is a step in the right direction because it tell mes which drivers are “broken”
Get-WmiObject Win32_PNPEntity | Where-Object{$_.ConfigManagerErrorCode -ne 0} | Select Name, DeviceID
Please let me know if you all have any ideas on how to script this functionality.
Thanks,
Vincent Morris