Solved

SCCM HTA appears behind task sequence during Vista PE OSD deployment

Posted on 2009-05-08
2
1,687 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

Do email signature updates give you a headache?

Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Join & Write a Comment

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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)

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now