Can TSConfig.ini CustomHook execute without SCCM?
-
Wednesday, October 03, 2012 3:09 PM
Hi,
Does anyone know if SCCM is required for a custom hook to execute?
I have the ini file in the root, X:\TSConfig.ini but the HTA never opens (works OK from the command line)
[CustomHook]
CommandLine="mshta.exe x:\Deploy\Scripts\Menu\MDT_BuildMenu.hta"Thanks,
Tony
All Replies
-
Wednesday, October 03, 2012 3:44 PM
When you create a MDT boot image, it will copy over files (based on a template) from the C:\Program Files\Microsoft Deployment Toolkit\Templates folder into the mounted PE image after adding the required+optional PE components.
One of these files is WinPEShl.ini, this is the file that WinPE uses in order to start applications (unattend.xml is another option btw; which is also located in this folder look for the unattend_pe_x86 and x64.xml files).
You can add, or change the contents of these in order to launch another application before the regular mdt wizard starts.
Basically what SCCM does when it creates its own MDT boot image, is add some additional files (mdt install folder\sccm) and include the ztimediahook.wsf to either one of these two locations (never mounted one of the images in order to check which location it adds this entry, but there's very few locations that you can configure WinPE and the applications it launches).
Kind regards,
Stephan Schwarz
If one of these posts answered your question or issue, please click on "Mark as answer".
My Blog | Twitter: @Schwarz_Stephan | MCTS, MCITP, MCSA, MCC-2011.
How to configure Windows RE/OEM Recovery Partition with MDT -
Wednesday, October 03, 2012 8:03 PM
Hi Stephan,
I need access to the microsoft.sms.tsenvironment object which is not available if I use winpeshl.ini or startnet.cmd
Currently we have a custom HTA build menu which is called at the start of the task sequence, I am trying to move the menu from the task sequence so a task sequence can be chosen according to what Business Unit is selected.
Not sure this is possible without SCCM?
Thanks,

