When you configure MDT you could specify an organization name To specify these, you can configure them in CustomSettings.ini:
_SMSTSOrgName=WardVissers
_SMSTSPackageName=My Package Name
That’s great if you want to hard-code the values, but what I wanted was that _SMSTSPackageName is set to the name of the task sequence that is being executed. That’s a little harder to do, because the task sequence hasn’t yet been selected when CustomSettings.ini is being processed, and you can’t set these read-only variables once the task sequence has started.
So this is one of those cases where you have to modify one of the MDT scripts, in this case LiteTouch.wsf. Fortunately, it’s a really trivial change. Look for this line:
oEnvironment.Item("_SMSTSPackageName") = "Lite Touch Installation"
And change it like so:
oEnvironment.Item("_SMSTSPackageName") = oEnvironment.Item("TaskSequenceName")
That line is only executed if _SMSTSPackageName is blank after CustomSettings.ini has been processed, so it won’t have any effect if you manually configured a value in CustomSettings.ini.
With that change, you can now see the name of the currently-running task sequence:
You can download the file here: LiteTouch.7z (Tested with MDT 2012 Update 1)