use wmi to detect a dvd drive in group policy

We use group policy to deploy a variety of software titles inour domain, like micorosoft office for instance.  I would also like to deploy powerdvd, however only to computers that have a dvd or dvd writer.  Im pretty sure you can do this with a wmi filter.  If someone could give me some step by step directions or point me to some whitepaper that would be great.  I am pretty good with active directory and group policy but no where near an expert when it comes to wmi.  thanks
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.

Toni UranjekConsultant/TrainerCommented:

I'm not sure you can write such WMI filter. You need to examine Win32_CDROMDrive class, there is one property which comes colse to what you are looking for, MediaType, but I belive, that it actually reports type of inserted disk not type of drive. This property comes back with result "CD-ROM" even if drive is DVD. The other posibility is to use Caption property with "like" operator. Actually I don't like "like" operator and have never used it myself but the following query might help you ;)
Description of Win32_CDROMDrive class:



Select * from Win32_CDROMDrive Where (Caption Like "%DVD%")

Open in new window


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
colonialiu20Author Commented:

so, does the "like" function basically say is there the word "dvd" somewhere in the caption?
Is there a way to preview the results?

Toni UranjekConsultant/TrainerCommented:
Yes, "like" will find the word DVD in Caption.

Download Scriptomatic:

It will write WMI scripts for you and will help you examine the output.
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
Active Directory

From novice to tech pro — start learning today.