<?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>BDD 2007 Tips - Creating Model Aliases</title><link>http://blogs.technet.com/benhunter/archive/2007/03/28/bdd-2007-tips-creating-model-aliases.aspx</link><description>When trying to manage drivers and hardware specific application with BDD 2007, I have found that with some model types (HP D530) return many variations on the same model number. While these have slight variations to their model names they have virtually</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: BDD 2007 Tips - Creating Model Aliases</title><link>http://blogs.technet.com/benhunter/archive/2007/03/28/bdd-2007-tips-creating-model-aliases.aspx#1485166</link><pubDate>Mon, 09 Jul 2007 18:03:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1485166</guid><dc:creator>Kim Oppalfens</dc:creator><description>&lt;p&gt;Great blog post, but using the makemodelapplications view is not the best choice IMHO. These view only has your models listed if each model also has an application linked to it. &lt;/p&gt;
&lt;p&gt;Which is pretty uncommon to the zti process.&lt;/p&gt;
&lt;p&gt;Makemodelsettings on the other hand, makes this more useful for both lti and zti deployments.&lt;/p&gt;</description></item><item><title>re: BDD 2007 Tips - Creating Model Aliases</title><link>http://blogs.technet.com/benhunter/archive/2007/03/28/bdd-2007-tips-creating-model-aliases.aspx#1491276</link><pubDate>Tue, 10 Jul 2007 09:00:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1491276</guid><dc:creator>BenHunter</dc:creator><description>&lt;P&gt;Hi Kim, This is just an example. I tend to use both MakeModelSettings and MakeModelApplications. I use MakeModelSettings to set things like display resolutions for a laptop and then I use MakeModelApplications to install applications that are specific to a to a particular model type, for example fingerprint reader drivers. This approach is also very useful for those annoying drivers that must be installed via an EXE or MSI rather than via PnP. &amp;nbsp;I find this approach very common, in fact I use MakeModelApplications a lot more than MakeModelSettings.&lt;/P&gt;
&lt;P&gt;I use this approach equally for both ZTI and LTI.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description></item><item><title>re: BDD 2007 Tips - Creating Model Aliases</title><link>http://blogs.technet.com/benhunter/archive/2007/03/28/bdd-2007-tips-creating-model-aliases.aspx#1914417</link><pubDate>Fri, 07 Sep 2007 09:04:06 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1914417</guid><dc:creator>Marcel</dc:creator><description>&lt;p&gt;I got a question regarding this. HP can be really annoying with those makes :S. For example I got a nc6320 laptop wich reads out as a &amp;quot;nc6340&amp;quot;. The other 6320 says &amp;quot;HP Compaq nc6320 (EY395ET#ABH)&amp;quot;. Seems like every HP is different. &lt;/p&gt;
&lt;p&gt;Only solution is to make a huge SetModelAlias script which filters all these out I presume?&lt;/p&gt;</description></item><item><title>re: BDD 2007 Tips - Creating Model Aliases</title><link>http://blogs.technet.com/benhunter/archive/2007/03/28/bdd-2007-tips-creating-model-aliases.aspx#1914458</link><pubDate>Fri, 07 Sep 2007 09:15:11 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1914458</guid><dc:creator>BenHunter</dc:creator><description>&lt;p&gt;Yes that is the exact reason why I created this script.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;
</description></item><item><title>re: BDD 2007 Tips - Creating Model Aliases</title><link>http://blogs.technet.com/benhunter/archive/2007/03/28/bdd-2007-tips-creating-model-aliases.aspx#1915287</link><pubDate>Fri, 07 Sep 2007 11:45:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1915287</guid><dc:creator>Marcel</dc:creator><description>&lt;p&gt;Hewlett-Packard can be so annoying :D &lt;/p&gt;
&lt;p&gt;thnx tho I will see what I can do. Worst part is figuring out all the model names of all the pc's.&lt;/p&gt;</description></item><item><title>re: BDD 2007 Tips - Creating Model Aliases</title><link>http://blogs.technet.com/benhunter/archive/2007/03/28/bdd-2007-tips-creating-model-aliases.aspx#1949851</link><pubDate>Thu, 13 Sep 2007 18:00:02 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1949851</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;Is there something similar to oEnvironment.Item(&amp;quot;Model&amp;quot;) for the system manufacturer such as oEnvironment.Item(&amp;quot;Make&amp;quot;) ro oEnvironment.Item(&amp;quot;Manufacturer&amp;quot;)?&lt;/p&gt;
&lt;p&gt;I would like to create something similar to this:&lt;/p&gt;
&lt;p&gt;Function SetModelAlias() &lt;/p&gt;
&lt;p&gt;	Select Case oEnvironment.Item(&amp;quot;Make&amp;quot;)		&lt;/p&gt;
&lt;p&gt;		Case &amp;quot;IBM&amp;quot;, &amp;quot;Lenovo&amp;quot; 	&lt;/p&gt;
&lt;p&gt;			SetModelAlias = Left(oEnvironment.Item(&amp;quot;Model&amp;quot;),4) &lt;/p&gt;
&lt;p&gt; 			oLogging.CreateEntry &amp;quot;USEREXIT - ModelAlias has been set to &amp;quot; &amp;amp; SetModelAlias, LogTypeInfo&lt;/p&gt;
&lt;p&gt;		Case &amp;quot;Matsushita Electric Industrial Co.,Ltd.&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	SetModelAlias = &amp;quot;Toughbook&amp;quot;&lt;/p&gt;
&lt;p&gt;			oLogging.CreateEntry &amp;quot;USEREXIT - ModelAlias has been set to &amp;quot; &amp;amp; SetModelAlias, LogTypeInfo	&lt;/p&gt;
&lt;p&gt;		Case Else&lt;/p&gt;
&lt;p&gt;			SetModelAlias = oEnvironment.Item(&amp;quot;Model&amp;quot;) &lt;/p&gt;
&lt;p&gt;			oLogging.CreateEntry &amp;quot; USEREXIT - ModelAlias has not been changed.&amp;quot; , LogTypeInfo &lt;/p&gt;
&lt;p&gt;	End Select&lt;/p&gt;
&lt;p&gt;End Function &lt;/p&gt;</description></item><item><title>re: BDD 2007 Tips - Creating Model Aliases</title><link>http://blogs.technet.com/benhunter/archive/2007/03/28/bdd-2007-tips-creating-model-aliases.aspx#1951602</link><pubDate>Thu, 13 Sep 2007 23:40:51 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1951602</guid><dc:creator>BenHunter</dc:creator><description>&lt;p&gt;The property oEnvironment.Item(&amp;quot;Make&amp;quot;) is used to identify this information.&lt;/p&gt;
&lt;p&gt;What you might want to do is update your function to return two aliases, &amp;quot;ModelAlias&amp;quot; and &amp;quot;MakeAlias&amp;quot;. You would then need to update your customsettings.ini file to use these aliases. To do this simply following the usage pattern in my example.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ben &lt;/p&gt;
</description></item><item><title>re: BDD 2007 Tips - Creating Model Aliases</title><link>http://blogs.technet.com/benhunter/archive/2007/03/28/bdd-2007-tips-creating-model-aliases.aspx#2951186</link><pubDate>Sun, 02 Mar 2008 10:02:58 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2951186</guid><dc:creator>Alan.1</dc:creator><description>&lt;p&gt;Ben,&lt;/p&gt;
&lt;p&gt;Using this method there appears to be a tendency of BDD 2007 to fail over in various ZTI scripts if the Model environment doesn't get recognized in the Userexit.vbs script.&lt;/p&gt;
&lt;p&gt;Instead, if we make the ELSE branch of SetModelAlias() define ModelAlias as an alternate model called &amp;quot;Unknown&amp;quot;, this can be defined in the Make and Model database (with at least one MakeModelApplication defined for that model, to force the result set). &lt;/p&gt;
&lt;p&gt;Otherwise the ELSE branch could be used to halt Userexit.vbs entirely, i.e. with a popup method in that script which reports the match filed.&lt;/p&gt;
&lt;p&gt;What is the reason for re-assigning the value ModelAlias back to the Model column after the database lookup?&lt;/p&gt;</description></item><item><title>re: BDD 2007 Tips - Creating Model Aliases</title><link>http://blogs.technet.com/benhunter/archive/2007/03/28/bdd-2007-tips-creating-model-aliases.aspx#2951220</link><pubDate>Sun, 02 Mar 2008 10:21:25 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2951220</guid><dc:creator>BenHunter</dc:creator><description>&lt;p&gt;Hi Alan,&lt;/p&gt;
&lt;p&gt;I use exactly the method you describe, atcept I call it generic rather than unknown :).&lt;/p&gt;
&lt;p&gt;The reason I assign the value back to the model column is because BDD will perform a lookup on the model column using the value from ModelAlias. This is the key to how this process works.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;
</description></item><item><title>re: BDD 2007 Tips - Creating Model Aliases</title><link>http://blogs.technet.com/benhunter/archive/2007/03/28/bdd-2007-tips-creating-model-aliases.aspx#2951877</link><pubDate>Sun, 02 Mar 2008 16:07:52 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2951877</guid><dc:creator>Alan.1</dc:creator><description>&lt;p&gt;Ben,&lt;/p&gt;
&lt;p&gt;I'm still confused as to what affect the &amp;quot;ModelAlias=Model&amp;quot; directive has on the database lookup.&lt;/p&gt;
&lt;p&gt;If it's nothing more than a variable assignment, then we're simply passing the unmodified Model environment straight back into ModelAlias, which was truncated earlier by Userexit.vbs in [SetModel]. &amp;nbsp;Doing so would be contraindicated since of course we actually want the custom Model name that's been added as the truncated version in our Make and Model database.&lt;/p&gt;
&lt;p&gt;For this to work it means that ModelAlias was already consumed by the database lookup before this gets re-assigned in [MMSettings] to the value of Model which, for all appearances, would preclude the lookup in [MMApps] defined in the next lower priority.&lt;/p&gt;
&lt;p&gt;This means the truncated ModelAlias value is capable of surviving the MakeModelSettings lookup so it matches the MakeModelApplications table. &amp;nbsp;Could you describe how this happens?&lt;/p&gt;</description></item><item><title>re: BDD 2007 Tips - Creating Model Aliases</title><link>http://blogs.technet.com/benhunter/archive/2007/03/28/bdd-2007-tips-creating-model-aliases.aspx#2952629</link><pubDate>Sun, 02 Mar 2008 21:40:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2952629</guid><dc:creator>BenHunter</dc:creator><description>&lt;p&gt;Hi Alan,&lt;/p&gt;
&lt;p&gt;My previous answer was a little cryptic!&lt;/p&gt;
&lt;p&gt;This is not assigning the modelalias value to model. This is used in the construction of the database lookup. So what it is really saying is - look for records where the model column has the same value as modelalias.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;
</description></item><item><title>re: BDD 2007 Tips - Creating Model Aliases</title><link>http://blogs.technet.com/benhunter/archive/2007/03/28/bdd-2007-tips-creating-model-aliases.aspx#2957417</link><pubDate>Tue, 04 Mar 2008 05:39:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2957417</guid><dc:creator>Alan.1</dc:creator><description>&lt;p&gt;Ben,&lt;/p&gt;
&lt;p&gt;Thanks for the clarification, thought I was taking crazy pills for a minute there.&lt;/p&gt;</description></item></channel></rss>