Solved

WMI filter for Windows 7 and Windows XP only all flavors

Posted on 2012-04-04
4
1,121 Views
Last Modified: 2012-06-22
I wants to apply GPO only to all flavors of Windows 7 and Windows XP only (32 and 64 bit). Can some help me with the WMI filter query?
0
Comment
Question by:sirineni
  • 3
4 Comments
 
LVL 6

Expert Comment

by:Raquero
Comment Utility
Check out this post:

http://www.computerperformance.co.uk/w2k3/gp/group_WMI_filters.htm

Windows 7 example:

select * from Win32_OperatingSystem WHERE Version like "6.1%" AND ProductType="1"
0
 
LVL 5

Expert Comment

by:2Cs
Comment Utility
I believe you would have to do this by creating a security group and add the Windows XP and Windows 7 machine accounts. You can only apply WMI filters to one O/s at a time but this solution should work around that.
0
 
LVL 6

Expert Comment

by:Raquero
Comment Utility
...should have mentioned it is simpler (and better...WMI on GPO slows processing down) to organize desktops/laptops into different OUs than servers. Then link the desired GPO to the OU where the workstations are and it will not affect servers and other systems you do not want it to apply to.

You can do this with OS specifc OUs if you desire, or by category such as Desktop, Laptop, etc. Don't get too granular with OUs, just use what you need to get to the desired configuration.
0
 
LVL 6

Accepted Solution

by:
Raquero earned 500 total points
Comment Utility
I agree with 2Cs's comment that using a security group is a good idea for restricting what machines a GPO applies to, but that can become an admistrative headache over time if folks forget to add new member computers to the group.

These should work if you really must use WMI:

This one will apply to W7 & XP only:

select * from Win32_OperatingSystem where (Version like "6.1%" or Version like "5%") and ProductType="1"

This one should apply to all client OS's from XP to Vista, to W7:

select * from Win32_OperatingSystem where ProductType="1"

See http://technet.microsoft.com/en-us/library/cc754488(v=WS.10).aspx for more information on versions and product types.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
Synchronize a new Active Directory domain with an existing Office 365 tenant
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now