Quantcast
Channel: Microsoft Deployment Toolkit forum
Viewing all articles
Browse latest Browse all 11297

Question about ModelAlias.vbs - not producing what expected on Lenovo machines

$
0
0

So i am trying to use ModelAlias.vbs userexit script to create sensible names for Lenovo machines so i can arrange my MDT driver structure accordingly.

I have found these articles:

Deplyment Guys Blog: http://blogs.technet.com/b/deploymentguys/archive/2009/09/10/using-and-extending-model-aliases-for-hardware-specific-application-installation.aspx

Mikael Nystroms Blog: http://deploymentbunny.com/2012/05/01/modelalias-user-exit-for-microsoft-deployment-toolkit-20102012/

Whats not so fun with Lenovo machines (there are other vendors also i guess) that model name for machine could be something like 6138W1K when giving commandprompt command wmic csproduct get name. Actual model name for 6138W1K is ThinkCentre M58p.

Problem:

So i assumed ModelAlias.vbs would return something like ThinkCentre M58 as an result so i could use that for folder structure (or in database) Problem is that ModelAlias.vbs gives that model number 6138W1K as result not producing that actula model ThinkCentre M58p.

Im testing ModelAlias using this:

del C:\MININT\SMSOSD\OSDLOGS\VARIABLES.DAT /q
cscript ZTIGather.wsf /inifile:..\Control\CustomSettings.ini
“E:\Extra\Trace32.exe” c:\minint\smsosd\osdlogs\bdd.log

(Also from Mikael Nystroms blog:http://deploymentbunny.com/2011/04/27/quick-and-dirty-testing-customsettings-ini-variables-in-mdt/)

Result from bdd.log

MODELALIAS is set accordig model NOT version info??

My CustomSettings.ini is set like this

[Settings]
Priority=SetModelAlias, Default
Properties=ModelAlias

[SetModelAlias]
UserExit=ModelAliasExit.vbs
ModelAlias=#SetModelAlias()#

Something is not right or is it :)


Viewing all articles
Browse latest Browse all 11297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>