{"id":807,"date":"2016-06-15T21:49:36","date_gmt":"2016-06-15T19:49:36","guid":{"rendered":"https:\/\/eugene.dullaard.nl\/?p=807"},"modified":"2016-07-07T14:08:19","modified_gmt":"2016-07-07T12:08:19","slug":"kace-2000-model-specific","status":"publish","type":"post","link":"https:\/\/eugene.dullaard.nl\/?p=807","title":{"rendered":"Kace 2000 Model Specific"},"content":{"rendered":"<p>The following script can be handy if you want to deploy certain computer model specific software within a scripted installation on Dell Kace 2000. It might be usefull for other things as well (Windows Deployment Services maybe) if you want to check if it applies before applying the software or script.<\/p>\n<pre class=\"brush: cpp; collapse: false; title: ; notranslate\" title=\"\">\r\n@ECHO OFF\r\nREM Obtain Computer Model information from WMI, this is done in two ways, check output for\r\nREM both to which applies best, for example 'model' works best with HP and 'version' works\r\nREM best with Lenovo. If something  applies to all computers from a single brand 'Manufacturer'\r\nREM can be used.\r\n\r\nREM Version 1.1, Added support for model and manufacturer\r\n\r\nset model=\r\nset version=\r\nset manufacturer=\r\n\r\nfor \/F &quot;tokens=2 delims='='&quot; %%j in ('wmic computersystem get model \/value') do set model=%%j\r\nfor \/F &quot;tokens=2 delims='='&quot; %%j in ('wmic csproduct get version \/value') do set version=%%j\r\nfor \/F &quot;tokens=2 delims='='&quot; %%j in ('wmic computersystem get manufacturer \/value') do set manufacturer=%%j\r\n\r\nREM Enter the Computer Models for which the package should apply below, one per line\r\nREM Change the 'if' statement to what works to detect the right hardware, the above 'wmic'\r\nREM commands can be run on the hardware to determine what is the best option.\r\n\r\nIf &quot;%model%&quot; == &quot;HP EliteBook 2560p&quot; GOTO INSTALL\r\nIf &quot;%model%&quot; == &quot;HP EliteBook 8460p&quot; GOTO INSTALL\r\nIf &quot;%model%&quot; == &quot;HP EliteBook 8560p&quot; GOTO INSTALL\r\n\r\nGOTO GOODBYE\r\n\r\n:INSTALL\r\n\r\nREM Enter Command Line for Silent Installation below\r\n\r\nlauncher \/S\r\n\r\nEXIT\r\n\r\n:GOODBYE\r\n\r\nEXIT\r\n<\/pre>\n<p>If you want to check what to use, just putting the wmic commands into a batch file should give you the right amount of info which of the checks would work for the computer you want to deploy:<\/p>\n<pre class=\"brush: cpp; collapse: false; title: ; notranslate\" title=\"\">\r\n@echo off\r\nwmic computersystem get model \/value\r\nwmic csproduct get version \/value\r\nwmic computersystem get manufacturer \/value\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The following script can be handy if you want to deploy certain computer model specific software within a scripted installation on Dell Kace 2000. It might be usefull for other things as well (Windows Deployment Services maybe) if you want to check if it applies before applying the software or script. @ECHO OFF REM Obtain &hellip; <a href=\"https:\/\/eugene.dullaard.nl\/?p=807\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Kace 2000 Model Specific<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[111,112],"class_list":["post-807","post","type-post","status-publish","format-standard","hentry","category-it","tag-dell","tag-kace"],"_links":{"self":[{"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/posts\/807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=807"}],"version-history":[{"count":13,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/posts\/807\/revisions"}],"predecessor-version":[{"id":822,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/posts\/807\/revisions\/822"}],"wp:attachment":[{"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}