Solved

WMI filter for Windows 7 and Windows XP only all flavors

Posted on 2012-04-04
4
1,127 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
ID: 37808698
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
ID: 37808710
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
ID: 37808713
...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
ID: 37808733
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 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