Loading Scripts that Have VBScript Classes or that Don’t Have a UserExit Function as User Exit Scripts – Script Update

In a previous post I provided a script that allows loading scripts that have VBScript Classes or that don’t have a UserExit function in them as User Exit scripts in CustomSetting.ini.  This script also allows you to load multiple User Exit scripts in a single CustomSetting.ini section as in this example: [Settings]Priority=IncludeExitScripts, DefaultProperties=ExitScripts(*) [IncludeExitScripts]UserExit=MDTExitInclude.vbsExitScripts001=#Include("MDTLibHelperClasses.vbs")#ExitScripts002=#Include("ModelAliasExit.vbs")#ExitScripts003=#Include("MDTConfigMgrFunctions.vbs")# I…

1

Deprecation of the OSVersion Property and What to Do About It

The OSVersion variable is populated with a short string representing the version of the operating system (e.g. XP, Vista, Win7Client, 2008, etc.).  With MDT 2012, you may have noticed that when you deploy Window 8 that the value of the OSVersion variable gets set to “Other” instead of something like “Win8”.  This is because the…

3

Loading Scripts that Have VBScript Classes or that Don’t Have a UserExit Function as User Exit Scripts

Most readers of this blog should be familiar with MDT User Exit scripts, as many of the posts provided them for many scenarios.  In case you are not, the MDT help file defines them this way: “A user exit script is effectively a function library that can be called during the processing of the CustomSettings.ini…

3

Using MDT and Custom Function Library Scripts as User Exit Scripts

A fellow Deployment Guy wanted to use some of the functions in ZTIDiskUtility.vbs in his own User Exit script.  Since ZTIGather.wsf does not include ZTIDiskUtility.vbs in its <script> elements, these functions are not available during the MDT rules processing.  One way to solve this would be to simply add a <script> element for ZTIDiskUtility.vbs into…

0

Banish GUIDs from CustomSettings.ini in MDT

Another of my pet peeves about MDT CustomSettings.ini rules is that fact that you have to define entries for Applications and ManditoryApplications as GUIDs.  Here is the example for Applications from the MDT help file: [Settings] Priority=Default [Default] Applications001={1D7DF331-47B7-472C-87B3-442597EC2F7D} Applications002={9d2b8999-5e4d-4f3d-bb05-edaaf4fe5628} In order to get the GUID for an application, you have to open the XML…

2

Setting MDT Time Zone Variables from the Source OS Time Zone

15 Feb 2010 Update – To use technique found in this post with MDT 2010 you will need to use one of the workarounds described in this post:  http://blogs.technet.com/deploymentguys/archive/2010/02/15/using-convertbooleantostring-with-ztigather-wsf-in-mdt-2010.aspx. System Center Configuration Manager 2007 Operating System Deployment has the ability to migrate the time zone from the source operating system to the destination operating system. …

1

Using Device Aliases for Hardware Specific Application Installation

15 Feb 2010 Update – To use techniques found in this post with MDT 2010 you will need to use one of the workarounds described in this post:  http://blogs.technet.com/deploymentguys/archive/2010/02/15/using-convertbooleantostring-with-ztigather-wsf-in-mdt-2010.aspx. In my last post I described how to use and extend model aliases.  In this installment I show how you can do the same thing with…

4

Setting AD Computer Object MDT Properties

Monday, June 22, 2009 Update – Fellow Deployment Guy Daniel Oxley pointed out to me that this is much more useful if you can pass in an optional username and password.  So I have modified the post and the script to allow that.  Please note the changes in the function parameters to accommodate this. ————————————————————————…

0

"Easy" List Items for the Microsoft Deployment Toolkit

In MDT rules processing with CustomSettings.ini, some of the items that can be configured are List Items.  List Items are essentially multi-valued custom properties.  Examples of items that are List Items are Applications in LTI and Packages in ZTI.  To define a List Item based property in CustomSettings.ini you add the base property name in…

0