I configured a task sequence to begin deployment of Windows 7 via USB thumb drives which are given to the techs. I wanted them to be able to install optional software at the time of deployment.
UPDATED HTA FILE TO LATEST VERSION
Using Groups within the Task Sequences assigned variables gave me the best method of doing so. I created a front end HTA to allow the techs 1. set the PC name 2. add any additional software that the user might have had on their XP or replaced PC.
1.Mount current boot.wim file and then add HTA packages (if you dont already have HTA support)
Dism /image:c:\mountedwim /Add-Package /PackagePath:”C:\Program Files\Windows AIK\Tools\PETools\%Architecture%\WinPE_FPs\winpe-hta.cab”
Dism /image:c:\mountedwim /Add-Package /PackagePath:”C:\Program Files\Windows AIK\Tools\PETools\%Architecture%\WinPE_FPs\en-us\winpe-hta_en-us.cab”
2. Refresh/update boot image in SCCM
4. Configure groups with Task Sequence Variables
5. Configure HTA file
(right click and save-as a text file and then rename to .hta once downloaded)
modify it to match your task sequence variables and the correct value it should be.
Keep in mind this will throw an error when not in the WinPE environment.
6. Deploy Image to USB Drive
No need to set variables on the Task sequence itself. When the image boots up and begins task sequence the HTA will run and prompt for check boxes and computer name value.