<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx</link><description>Hi, Ned here again. You may remember Mike Stephens writing about importing and exporting WMI filters back in May. A common follow up question we got from that blog post was: &amp;#8220; Hey cool. So, uh, what are WMI filters again?&amp;#8221; Group Policy WMI</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3122690</link><pubDate>Fri, 12 Sep 2008 00:30:31 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3122690</guid><dc:creator>Artem</dc:creator><description>&lt;p&gt;Great post, thanks. I wish you wrote it a bit earlier ;)&lt;/p&gt;
&lt;p&gt;A couple of months ago I was evaluating Windows Server Security Guide. Default GPOs from there turn on UAC for user accounts (even administrators). That's generally a good thing, but not on Server Core. It's simply unable to display the UAC prompt, so the user can never elevate.&lt;/p&gt;
&lt;p&gt;So I had to find out myself how to filter out the Cores using WMI.&lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3122694</link><pubDate>Fri, 12 Sep 2008 00:38:27 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3122694</guid><dc:creator>NedPyle</dc:creator><description>&lt;p&gt;Rats - I wish you had commented/emailed us sooner. I wrote an internal article on this UAC scenario back in May, but no customer has ever called about the problem. I'll put this on the blog list.&lt;/p&gt;
&lt;p&gt;- Ned&lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3123191</link><pubDate>Sat, 13 Sep 2008 00:52:06 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3123191</guid><dc:creator>Mkline</dc:creator><description>&lt;p&gt;Group Policy MVP Darren Mar-Elia had a contest on his mailing list for a tough WMI problem. &amp;nbsp;The original poster wanted a filter for desktop (no laptops)computers only. &lt;/p&gt;
&lt;p&gt;A guy named Joel won the contest with this nice filter&lt;/p&gt;
&lt;p&gt;&amp;quot;Select * from Win32_PhysicalMemory where FormFactor != 12&lt;/p&gt;
&lt;p&gt;Returns True on computers that do not have SoDimm form factor memory and False on computers with SoDimm form factor memory. &amp;nbsp;The assumption is that all laptops will have this style memory and desktops will not.&amp;quot;&lt;/p&gt;
&lt;p&gt;Very good filter that does the job for almost all hardware configs.&lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3123192</link><pubDate>Sat, 13 Sep 2008 00:54:46 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3123192</guid><dc:creator>NedPyle</dc:creator><description>&lt;p&gt;That is quite clever! &lt;/p&gt;
&lt;p&gt;- Ned&lt;/p&gt;
</description></item><item><title>Das "Active Directory" Team online...</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3130799</link><pubDate>Wed, 01 Oct 2008 17:58:49 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3130799</guid><dc:creator>.: Michael Korp :.</dc:creator><description>&lt;p&gt;Auch das Active Directory Team betreibt ein Blog , dass ich interessant zu lesen finde. Gestolpert dar&amp;amp;#252;ber&lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3131005</link><pubDate>Thu, 02 Oct 2008 00:26:38 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3131005</guid><dc:creator>ls4bb</dc:creator><description>&lt;p&gt;This is great!&lt;/p&gt;
&lt;p&gt;If I need to filter just for non-server OS, will the following work?&lt;/p&gt;
&lt;p&gt;SELECT ProductType FROM Win32_OperatingSystem WHERE ProductType &amp;lt;&amp;gt; “1”&lt;/p&gt;
&lt;p&gt;For WMI filters in general, do they add more significant load on domain controllers because the filters are processed at GPO refresh interval?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3131008</link><pubDate>Thu, 02 Oct 2008 00:33:03 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3131008</guid><dc:creator>NedPyle</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you wanted it to not be a server, you'd use:&lt;/p&gt;
&lt;p&gt;SELECT ProductType FROM Win32_OperatingSystem WHERE ProductType = “1”&lt;/p&gt;
&lt;p&gt;(the only difference being the equals sign). That will only return true if it's a workstation.&lt;/p&gt;
&lt;p&gt;This should add no real load to the DC's, as the WMI processing happens client-side. Although it might make GP processing take just a bit longer on the client, and that would have the client talking to DC a bit longer, so I suppose in that sense there might be some tangental load... probably not measurable. :)&lt;/p&gt;
&lt;p&gt;- Ned&lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3133467</link><pubDate>Tue, 07 Oct 2008 15:57:20 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3133467</guid><dc:creator>hilde</dc:creator><description>&lt;p&gt;EXCELLENT! &amp;nbsp;This is real-world useful stuff! &amp;nbsp;Especially the text to use for certain OS type filters - KUDOS!&lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3141567</link><pubDate>Fri, 24 Oct 2008 22:29:26 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3141567</guid><dc:creator>dukkse</dc:creator><description>&lt;p&gt;Hey!!&lt;/p&gt;
&lt;p&gt;So, I have a WMI filter question for you related to above, I have half of it already, thanks. But, I need to filter out a Windows 2008 64 bit server, that is not a DC from everything else.&lt;/p&gt;
&lt;p&gt; I have this so far, but somehow my Vista clients still get it, which I really dont want to. &amp;nbsp;Here is my filter. &lt;/p&gt;
&lt;p&gt;Select OSArchitecture,Version,ProductType from Win32_OperatingSystem where (OSArchitecture=&amp;quot;64-bit&amp;quot;) AND (Version like &amp;quot;6.0%&amp;quot;) AND (ProductType=&amp;quot;3&amp;quot;)&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Daniel&lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3141584</link><pubDate>Fri, 24 Oct 2008 23:16:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3141584</guid><dc:creator>Craig</dc:creator><description>&lt;p&gt;WBEMTEST returns true for that query on my 2008 x64 member server, and returns false on my Vista x64 machine.&lt;/p&gt;
&lt;p&gt;Do you get those same results with WBEMTEST?&lt;/p&gt;
&lt;p&gt;Just do Start, Run, WBEMTEST. Then click Connect, leave it as root\cimv2, then click Query, and paste in your query as-is, then click Apply. If you get 0 objects returned that is a False, 1 object returned is a True.&lt;/p&gt;
</description></item><item><title>Top AskDS Blog Posts</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3156656</link><pubDate>Thu, 20 Nov 2008 03:31:22 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3156656</guid><dc:creator>Ask the Directory Services Team</dc:creator><description>&lt;p&gt;We’ve been at this for over a year (since August 2007), with more than 100 posts (127 to be exact), so&lt;/p&gt;
</description></item><item><title>Filtering Automation Processes: Logon Scripts, Group Policy Settings</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3210230</link><pubDate>Sat, 07 Mar 2009 05:29:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3210230</guid><dc:creator>David M. Stein's Blog</dc:creator><description>&lt;p&gt;For various reasons, you may want to restrict certain configuration processes to a subset of your environment&lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3242032</link><pubDate>Sat, 16 May 2009 03:42:39 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3242032</guid><dc:creator>club penguin</dc:creator><description>&lt;p&gt;Just do Start, Run, WBEMTEST. Then click Connect, leave it as root\cimv2, then click Query, and paste in your query as-is, then click Apply. If you get 0 objects returned that is a False, 1 object returned is a True.&lt;/p&gt;
</description></item><item><title>MUST College</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3246571</link><pubDate>Thu, 28 May 2009 08:39:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3246571</guid><dc:creator>jackiboa</dc:creator><description>&lt;p&gt;I have half of it already, thanks. But, I need to filter out a Windows 2008 64 bit server, that is not a DC from everything else.&lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3246960</link><pubDate>Thu, 28 May 2009 16:44:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3246960</guid><dc:creator>NedPyle</dc:creator><description>&lt;p&gt;This works for me (will apply to any 64-bit OS non-DC Win2008 server:&lt;/p&gt;
&lt;p&gt;SELECT OSArchitecture,ProductType FROM Win32_OperatingSystem WHERE OSArchitecture = &amp;quot;64-bit&amp;quot; and ProductType = &amp;quot;3&amp;quot;&lt;/p&gt;
&lt;p&gt;Is that what you're looking for?&lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3268174</link><pubDate>Sun, 26 Jul 2009 15:21:02 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3268174</guid><dc:creator>GarryWert</dc:creator><description>&lt;p&gt;This is real-world useful stuff! &amp;nbsp;Especially the text to use for certain OS type filters. Thanks.&lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3275722</link><pubDate>Fri, 21 Aug 2009 23:16:48 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3275722</guid><dc:creator>SallyB</dc:creator><description>&lt;p&gt;It's always interesting to read your articles. I wish I could write as good as you!&lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3275730</link><pubDate>Fri, 21 Aug 2009 23:42:04 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3275730</guid><dc:creator>NedPyle</dc:creator><description>&lt;p&gt;:) Thanks Sally, that made my day. Have a nice weekend.&lt;/p&gt;
&lt;p&gt;- Ned&lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3290594</link><pubDate>Sun, 01 Nov 2009 04:32:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3290594</guid><dc:creator>Vistaprint Coupon</dc:creator><description>&lt;p&gt;I must add - for various reasons, you may want to restrict certain a-type configuration processes to a subset of your virtual environment. This is true in many ways and it's good to keep it in mind. &lt;/p&gt;
</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3297224</link><pubDate>Mon, 30 Nov 2009 13:24:22 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3297224</guid><dc:creator>yoels@amdocs.com</dc:creator><description>&lt;p&gt;I need a WMI Query (Filter) for IIS 6 or above, any Idea what class I should use?&lt;/p&gt;</description></item><item><title>re: Fun with WMI Filters in Group Policy</title><link>http://blogs.technet.com/askds/archive/2008/09/11/fun-with-wmi-filters-in-group-policy.aspx#3297339</link><pubDate>Mon, 30 Nov 2009 20:29:19 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3297339</guid><dc:creator>NedPyle</dc:creator><description>&lt;p&gt;Hi Yoels,&lt;/p&gt;
&lt;p&gt;Interesting problem. Here's one way to do it, you can explore the theme here. Make sure you test on Win2003 and later, as I only tested on Win2008. Also, make sure you use the double backslashes like I did below:&lt;/p&gt;
&lt;p&gt;SELECT Version FROM CIM_DataFile WHERE Name = &amp;quot;c:\\windows\\system32\\inetsrv\\iisres.dll&amp;quot; AND Version &amp;gt;= &amp;quot;6&amp;quot;&lt;/p&gt;
&lt;p&gt;This will see if the IISRES.DLL that IIS uses is installed and if it's version is equal to or greater than 6.&lt;/p&gt;
&lt;p&gt;Let me know if that works for you. I must point out that IIS 5.0 only exists on Win2000 though, and since you cannot use WMI filters on Win2000, the version is rather moot. This would be more useful to see if it was IIS 7 or higher, for example.&lt;/p&gt;
</description></item></channel></rss>