1. Before you run your first HTA application, make sure you insert a restart computer with WINPE image that you loaded from windows installation disk. The inbuilt x64 or x86 boot image wont support HTA, which will cause fails to run your scripts.

 

2. To hide the current task sequence window in VBS:

Set oTSProgressUI = CreateObject("Microsoft.SMS.TSProgressUI")
oTSProgressUI.CloseProgressDialog
Set oTSProgressUI = Nothing

 

3. To show the task sequence window when you quit HTA window:

objOSD("ALLOWOSDBUILD") = "YES"
window.close()

 

4. To Set up a variable for your use through the whole task sequence, simply add a task variable in your task sequence.

 

5. To access that task sequence variable and any other :

Set objOSD = CreateObject("Microsoft.SMS.TSEnvironment")

objOSD("TaskType")="ReImageComputer"

 

6. Add task variables before HTA, set variable values use VBS then run tasks based on variable value by set up the task running conditions.

 

7. You can put all the css stylesheet and other pictures in ur customized HTA packages. Just like a html webpage.

 

 

 

About Lei

I am an IT specialist with over 10 year experience - years on Automation, on-Premise or Azure.

I am happy to develop however never want be a full time developer. Only do what I have to do. If it has to be PowerShell,HTML, PHP, CSS, C#, VBS or JS, front end or backend, so be it, doesn't matter!

Spent years with Windows, SCCM, SharePoint, SQL and Exchange servers. For last several years, I have been actively working under On Premise > Azure environment.

THERE IS NO WAY BACK!!!

Current Certificates:
    Microsoft® Certified-
  • -Enterprise Administrator
  • -Database Administrator
  • -SharePoint Administrator
  • -Administering and Deploying SCCM 2012
Red Hat Certified Technician
ITIL V3 Foundation - Practitioner

Working on Azure Certificates now and hopefully they can stop upgrading their questions one day! GIVE ME A BREAK!

Contact Lei

Name *
Email *
Comments *

Traffic since 10/08/2016

Today13
Yesterday83
This week637
This month1933
Total416293

Visitor Info

  • IP: 54.221.73.186
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

1
Online

2017-12-17

Login