WMI filter for xp and 7

We currently have many GPO's with a WMI filter for all machines that are windows xp pro, now we have some windows 7 machines and the GPO's are being filtered out. how do i change the filter to allow for xp pro "or" windows 7?
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.

Mike KlineCommented:
Haven't tested this out (don't want to lie) I don't have a 7 box at my lab where I am right now

 Select * from Win32_OperatingSystem where Caption = "Microsoft Windows XP Professional" OR Caption = "Microsoft Windows 7 Enterprise "

another method I thought about is

select * from Win32_OperatingSystem where Version like "6.1" OR Version like "5.1"
got that idea from http://technet.microsoft.com/en-us/library/cc754488(WS.10).aspx



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
KenoboyAuthor Commented:
I used the second suggestion, just had to add (and ProductType = "1" to denote a client OS. server versions are 5.% also. this is the query i used:

Select * from Win32_OperatingSystem where Version like "5.%" and ProductType = "1" OR Version like "6.%" and ProductType = "1"

Thank you.
Mike KlineCommented:
Nice work!!
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
IT Administration

From novice to tech pro — start learning today.