[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2012-08-14
3
Medium Priority
?
1,364 Views
Last Modified: 2012-08-14
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.
0
Comment
Question by:meirionwyllt
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
Krzysztof Pytko earned 2000 total points
ID: 38291505
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
 

Author Comment

by:meirionwyllt
ID: 38291842
Perfect - that works fine!

Thanks.
0
 
LVL 39

Expert Comment

by:Krzysztof Pytko
ID: 38291856
You're welcome :)

Krzysztof
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Make the most of your online learning experience.
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question