Just for the people who are still looking for a solution. Launch the HTA using the following command on a 64 bit machine. ccmexec.exe (SMS service) runs as a 32 bit process on a 64 bit machine. In-order to invoke the 64 bit process of mshta.exe, we've got to call it using the following method in SCCM. if not, windows redirects automagically to the 32 bit version of mshta.exe.
%WINDIR%\sysnative\mshta.exe <path-to-the-HTA>
and if you are using SCCM 2012 with WinPE 5, use the power of dot net vs HTA (which I still like): An example dotNET application on Microsoft Technet <Click to open technet article>
Topaz Paul:
nz.linkedin.com/pub/topaz-paul/19/275/328/