HTA BackEnd Script for OSD

Posted on Updated on

This post has been updated with new code. 

Please visit OSD Options Chooser v2

There are plenty of examples out there for how to get the most out of Task Sequences for SCCM 2007 OS deployment.  But I wasn’t motivated to find out how others were doing it…Until I saw a demonstration by Jarvis Davis that he presented at MMS 2009. 

From that I built my own custom HTML Application to do what I needed.  At the moment, I have not enabled HTA support in my WinPE boot images.  So the below example is purely a “BackEnd” script which simply means that it needs to run at the towards the end of the Task Sequence so that the end-operator (or end-user) does not need to wait for much of the imaging to complete.

This HTA does the following

  • Field to enter in the name of user to add into the local Administrators group
  • Selection for US time zone to configure Windows to use (defaults to MST, since that is where I am)
  • Option to install one of 6 flavors of Adobe Acrobat
  • Option to install one of 2 flavors of Project 2003
  • Option to install one of 2 flavors of Visio 2003
  • Option to install BlackBerry desktop
  • Option to install Streets and Trips 2006

Additional things to note

  • In order to add a domain user to your local admins group, the value sDomainName = “YourDomainName” must be filled in appropriately.
  • All activity is logged into C:\CustomSystemOptions.log
  • If one of the options to install software is selected, a Task Sequence variable is created and set to True.  To utilize this, you would need to have an Install Software task that is limited to only install of the corresponding variable is set to True.  Note: the Install Software task must be after the execution of the HTA!

6 thoughts on “HTA BackEnd Script for OSD

    Jarvis said:
    May 20, 2009 at 6:02 pm

    Glad my demo at MMS was helpful to you. Looks like you did some good expanding on my script.

    If you come to MMS next year, look me up. I’d love to meet you.


    […] first ran across a great HTA script written by Nick Mosely. With this script you are able to add in a selection for different applications. I then edited the […]

    Karl said:
    November 29, 2010 at 8:04 am

    Does it exist an HTA to install machines let’s say with the choice of ‘task sequence name’ and where you can put the name of the machine that it must have and it’s mac address?

      Nicolas Moseley responded:
      November 29, 2010 at 8:52 am

      I think you are asking how to have a task sequence prompt for a computer name. See

        Karl said:
        November 29, 2010 at 9:15 am

        Not exactly, I tested your OSDComputername scripts in the past which works great but I’m looking for something different.
        I need to create a website that is accessible on our LAN and where the user(basic technician) has to put a computername and the mac adddress of the machine and where he can choose a task sequence to install on it.

        I know it’s possible but I don’t know how…

        Nicolas Moseley responded:
        November 29, 2010 at 11:03 am

        Unfortunately this is not a good solution for your needs. For the best possible help on your scenario, I would utilize MyITForum as there are many people with great ideas who can all help contribute.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s