Jump to content


Sign in to follow this  
ThatOneGuy

HTA Blank screen

Recommended Posts

So I've been taking the first steps in creating an HTA for our environment. We do not have MDT integration set up, so I'm following the instructions in this post http://myitforum.com...nt-end-hta.aspx to try to set up a frontend. In summary, I just add HTA support to the image and create a tsconfig.ini file that invokes the file. I then go through and add HTA support to the boot image and configure a TS to use that image when it reboots. (It's a x64 boot image, by the way.)

 

The problem is that when the computer PXE boots, I see the PXE password screen (as usual), and after I enter the password, a blank white window appears with the title of my HTA. It sits around there until I close the window, and then it proceeds to the task sequence selection window. It's as if the boot image doesn't support HTA scripts, even though I explicitly added that capability through dism.

 

Most people that use HTAs seem to have MDT integrated. Can anyone help me get this standalone feature working?

 

Thanks in advance! :)

Share this post


Link to post
Share on other sites


are you sure you are using the right boot image ? have you tried pressing F8 and running the HTA using mshta.exe bla.hta ?

Share this post


Link to post
Share on other sites

Thank you for the reply. :) I'm quite sure I'm using the right boot image; I've checked the filesystem on the PE drive and confirmed that my hta is there.

 

It does load successfully from the command line using mshta X:\Deploy\Scripts\import-0_1.hta.

 

Here's the contents of my tsconfig.ini file:

[CustomHook]
CommandLine="mshta.exe x:\Deploy\Scripts\import_0_1.hta"

Share this post


Link to post
Share on other sites

I noticed that in the manual command you have a hyphen, while in the INI file you have an underscore. Might want to check for typos...

Share this post


Link to post
Share on other sites

Sorry for the belated response. I was FINALLY able to resolve the issue. :D In case anyone else has this issue, the blank screen I described it means that mshta.exe is running, but it's unable to find the HTA file it was asked to run.

 

Here's the TSconfig.ini file that ended up working for me:

 

[CustomHook]
CommandLine="%systemroot%\system32\mshta.exe %systemdrive%\import.hta"

 

@Lucid - thanks for the reminder about the hyphen; that was part of the problem. I renamed them both to just import.hta so I wouldn't have that problem any more.

 

Thanks everyone for the help!

 

Edit - forgot to mention that I also moved the HTA to the root of the drive. It's easier to maintain that way, especially since I use a couple of images.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...