could someone please help me find the WMI classes which gives information about input (keyboard, mouse, webcams) and output devices (like monitors) etc?

I am writing a perl script to query all the hardware information on a windows system, and I wanna know the wmi classes that hold information about all input/output devices on a windows host.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'd recommend getting Microsoft's WMI Code Creator. As well as writing code in vbscript (yes, I know you're using perl) it's also the easiest way I've found to browse WMI space.

With that said, everything you're looking for is going to be a subset of root\CIMv2 - for instance, BIOS is located at \\COMPUTER\root\cimv2\Win32_SystemBIOS.
On your windows system type wbemtest in the run dialog - click connect replace root/default with root/cimv2, click Enum Classes select "Recursive" and click ok.  The system will iterate through all WMI classes in that namespace scroll down to the ones that start with Win32 -  I would start there.  You can double click on these classes to get the methods and properties of them.

For example:  if you select the Win32_LogicalDisk class, then the Name Property and click on "Instances" you will see a list of all logical drives in use on that system.  

Using this information you can generate the necessary WMI code in your Perl script.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
deshawAuthor Commented:
Thanks for the details
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.