Solved

SCCM HTA appears behind task sequence during Vista PE OSD deployment

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

920 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

16 Experts available now in Live!

Get 1:1 Help Now