GPO WMI Filter for only Windows Server 2008 R2 or Server 2008 x86

Hi, I want to have a WMI filter running on a GPO so that the GPO only runs when the logged on machine is either of these three OSes:

Windows Server 2008 R2 SP1  (Running 'ver' says [Version 6.1.7601])
Windows Server 2008 Standard without Hyper-V SP2 32-bit  (Running 'ver' says [Version 6.0.6002])

I don't want Server 2003 involved.

I also want it to only run on a server, not a domain controller, or a workstation.

Initially, I had an WMI filter only for the R2 server, i.e.

SELECT Version, ProductType FROM Win32_OperatingSystem WHERE Version = '6.1.7601' AND ProductType = '3'

This has been working well for me, but I want to incorporate the 2008 32-bit server into it and I'm not quite sure how to sort out the boolean AND/OR business.

Thanks.
meirionwylltSenior Desktop EngineerAsked:
Who is Participating?
 
Krzysztof PytkoSenior Active Directory EngineerCommented:
Have you tried a little bit different way ? :)

SELECT Version, ProductType FROM Win32_OperatingSystem WHERE Caption LIKE '%2008%' AND ProductType = '3'

Open in new window


Regards,
Krzysztof
0
 
meirionwylltSenior Desktop EngineerAuthor Commented:
Perfect - that works fine!

Thanks.
0
 
Krzysztof PytkoSenior Active Directory EngineerCommented:
You're welcome :)

Krzysztof
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.