{"id":364,"date":"2017-02-04T13:40:50","date_gmt":"2017-02-04T10:40:50","guid":{"rendered":"http:\/\/as7ablog.com\/kinan\/?p=364"},"modified":"2017-06-24T22:01:38","modified_gmt":"2017-06-24T19:01:38","slug":"wmi-filters-for-gpo-in-ad","status":"publish","type":"post","link":"http:\/\/as7ablog.com\/kinan\/?p=364","title":{"rendered":"Sample WMI Filters for GPO in AD"},"content":{"rendered":"<p dir=\"ltr\">Hereafter listed few filters I keep using on my projects.<\/p>\n<p dir=\"ltr\">Almost every client I&#8217;ve worked with had these filters implemented in their Group Policy Console of Windows Active Directory.<\/p>\n<p dir=\"ltr\">So I keep it here for faster access, and easier than searching for it every time on different sites on the\u00a0the web.<\/p>\n<p dir=\"ltr\"><span style=\"text-decoration: underline\">FILTER 1: Select DCs &amp; Member Servers<\/span><\/p>\n<p dir=\"ltr\"><em>Namespace:<\/em> root\\CIMv2<\/p>\n<p dir=\"ltr\"><em>Query:<\/em> select * from Win32_OperatingSystem where ProductType=&#8221;3&#8243; OR ProductType=&#8221;2&#8243;<\/p>\n<p dir=\"ltr\"><span style=\"text-decoration: underline\">FILTER 2: Select Domain Controllers (DCs) Only<\/span><\/p>\n<p dir=\"ltr\"><em>Namespace:<\/em> root\\CIMv2<\/p>\n<p dir=\"ltr\"><em>Query:<\/em> select * from Win32_OperatingSystem where ProductType=&#8221;2&#8243;<\/p>\n<p dir=\"ltr\"><span style=\"text-decoration: underline\">FILTER 3: Select Member Servers Only<\/span><\/p>\n<p dir=\"ltr\"><em>Namespace:<\/em> root\\CIMv2<\/p>\n<p dir=\"ltr\"><em>Query:<\/em> select * from Win32_OperatingSystem where ProductType=&#8221;3&#8243;<\/p>\n<p dir=\"ltr\"><span style=\"text-decoration: underline\">FILTER 4: Select Workstations Only<\/span><\/p>\n<p dir=\"ltr\"><em>Namespace:<\/em> root\\CIMv2<\/p>\n<p dir=\"ltr\"><em>Query:<\/em> select * from Win32_OperatingSystem where ProductType=&#8221;1&#8243;<\/p>\n<p dir=\"ltr\"><span style=\"text-decoration: underline\">FILTER 5: Select Win 2008 Member Servers Only<\/span><\/p>\n<p dir=\"ltr\"><em>Namespace:<\/em> root\\CIMv2<\/p>\n<p dir=\"ltr\"><em>Query:<\/em> select * from Win32_OperatingSystem where ProductType=&#8221;3&#8243; AND Version like &#8220;6.%&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hereafter listed few filters I keep using on my projects. Almost every client I&#8217;ve worked with had these filters implemented in their Group Policy Console of Windows Active Directory. So I keep it here for faster access, and easier than searching for it every time on different sites on the\u00a0the web. FILTER 1: Select DCs [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[18,14,19],"class_list":["post-364","post","type-post","status-publish","format-standard","hentry","category-4","tag-active-directory","tag-microsoft","tag-windows-domain"],"_links":{"self":[{"href":"http:\/\/as7ablog.com\/kinan\/index.php?rest_route=\/wp\/v2\/posts\/364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/as7ablog.com\/kinan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/as7ablog.com\/kinan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/as7ablog.com\/kinan\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/as7ablog.com\/kinan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=364"}],"version-history":[{"count":2,"href":"http:\/\/as7ablog.com\/kinan\/index.php?rest_route=\/wp\/v2\/posts\/364\/revisions"}],"predecessor-version":[{"id":373,"href":"http:\/\/as7ablog.com\/kinan\/index.php?rest_route=\/wp\/v2\/posts\/364\/revisions\/373"}],"wp:attachment":[{"href":"http:\/\/as7ablog.com\/kinan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/as7ablog.com\/kinan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/as7ablog.com\/kinan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}