I'm trying to write a script that will find if a machine has any USB and/or parallel port devices attached to it. I'd like to get the devices name as it would be shown in device manager, but can't seem to figure this one out. I can find devices by having Kix look to see if a driver is installed, but I would have to write code for every possible driver I can think of; that would not be fun, or the "right" way, and I would not get a the model of every device. I'm trying to find things like PDAs, scanners, card scan machines and digital cameras. I'm aware that some of these devices may not always show up in device manager unless they are plugged in, which is fine. I've been trying to use WMIQuery to find them (in conjunction with what I find at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_classes.asp), but I am having a difficult time. I've even tried looking for a list of TWAIN devices... but no luck their either. There must be a way to do this if other software such as Omnipage Pro or Adobe Photoshop can find if a TWAIN device is installed. I've even searched kixtart.org and it appears to me that either I am the only one who can't do this on his own, or no one else has tried it yet. Any help is much appreciated.
_________________________
Ganiman