{"id":119,"date":"2014-05-02T07:51:39","date_gmt":"2014-05-02T14:51:39","guid":{"rendered":"http:\/\/www.steveneppler.com\/blog\/?p=119"},"modified":"2014-12-13T15:23:45","modified_gmt":"2014-12-13T22:23:45","slug":"filtering-drivers-by-computer-model-in-mdt-or-sccm","status":"publish","type":"post","link":"https:\/\/steveneppler.com\/blog\/2014\/05\/02\/filtering-drivers-by-computer-model-in-mdt-or-sccm","title":{"rendered":"Filtering drivers by computer model in MDT or SCCM"},"content":{"rendered":"<p>If you want to filter by computer model, first you&#8217;ll need to get the computer model name by running the &#8216;<strong>wmic<\/strong>&#8216; command in a DOS prompt, and then typing: &#8216;<strong>CSProduct Get Name<\/strong>&#8216;.  That should return something similar to this:<\/p>\n<p><code><br \/>\nC:\\Users\\seppler>wmic<br \/>\nwmic:root\\cli>CSProduct Get Name<br \/>\nName<br \/>\nHP EliteDesk 800 G1 USDT<br \/>\n<\/code><\/p>\n<p>Then, you&#8217;ll want to add a conditional Inject Drivers command, with the condition being a WMI query for:<\/p>\n<p><code>SELECT * FROM Win32_ComputerSystem WHERE Model LIKE \"%EliteDesk 800 G1%\"<\/code><\/p>\n<p>Replace the &#8220;EliteDesk 800 G1&#8221; string with whatever model you want to match.  The percents on each side are a typical SQL wildcard, which is why I don&#8217;t have to include &#8216;HP&#8217; or &#8216;USDT&#8217;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to filter by computer model, first you&#8217;ll need to get the computer model name by running the &#8216;wmic&#8216; command in a DOS prompt, and then typing: &#8216;CSProduct Get Name&#8216;. That should return something similar to this: C:\\Users\\seppler>wmic wmic:root\\cli>CSProduct Get Name Name HP EliteDesk 800 G1 USDT Then, you&#8217;ll want to add a &#8230; <a title=\"Filtering drivers by computer model in MDT or SCCM\" class=\"read-more\" href=\"https:\/\/steveneppler.com\/blog\/2014\/05\/02\/filtering-drivers-by-computer-model-in-mdt-or-sccm\" aria-label=\"Read more about Filtering drivers by computer model in MDT or SCCM\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-on-the-job","category-windows"],"_links":{"self":[{"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":2,"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/posts\/119\/revisions\/121"}],"wp:attachment":[{"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}