Solved

SCCM HTA appears behind task sequence during Vista PE OSD deployment

Posted on 2009-05-08
2
1,699 Views
Last Modified: 2013-11-21
I have a HTA form that prompts for user input at the start of a SCCM 2007 RC2 tasks sequence.

When it launches (under windows Vista PE), the HTA appears behind the task sequence dialogue.

How do I make the HTA appear in front of the task sequence dialogue so it is ready for user input?

Is there a VBS command I can use to make the HTA form come to the foreground onload?

ie: in the "Sub Window_OnLoad"  section


0
Comment
Question by:alliedfusion
2 Comments
 
LVL 17

Expert Comment

by:Jared Luker
ID: 24336719
If you are using wshshell.run, you can use the intWindowsStyle option to play with how the window displays.  My guess is that you'd want 1 or 3.

http://www.devguru.com/technologies/WSH/17419.asp
0
 

Accepted Solution

by:
alliedfusion earned 0 total points
ID: 24352768
I ended up finding a *.exe to perform this function

http://www.commandline.co.uk/cmdow/

and added a SUB Routine to the Sub Window_OnLoad

 Sub Bring_HTA_to_Font_Most_Window
         Set objShell = CreateObject("Wscript.Shell")
         objShell.Run "..\HTA\POPHTA.CMD"
 End Sub


COMMAND FILE "POPHTA.CMD
"cmdow.exe" "Workstation Naming" /TOP /ACT

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question