devcon: list unknown or disabled devices?

sm625

Diamond Member
May 6, 2011
8,172
137
106
I'm trying to figure out how to get the command line tool devcon to list only devices that show as unknown, uninstalled, or disabled in device manager. Basically, that is any device that is not "working properly" according to the device status window. Anyone know a way to do that?
 

sm625

Diamond Member
May 6, 2011
8,172
137
106
Right now it looks like I'm going to have to do a "devcon status *" and then parse through the entire list looking for strings other than "Driver is running". It doesnt seem like an elegant solution.