I have read here, here, here, here and here for HTA .I used HTA available here and modified and used in my task sequence.
I have read here, here, here and here to learn about log capture and used in my task sequence.
I have read here for how to sequence steps in task sequence
If you are new to HTA with SCCM it could take you 1 or 2 days to just setup your environment so just in keep in mind that it is a lengthy drawn out process.
In Part 1 I explained the code in HTA , various HTA options and created package for HTA.
In Part 2 I explained how to create a custom USMT Package
In Part 3 I explained different groups in the task sequence highlight what each group does.
Part 4 – New Computer Hard drive partition
In part 4 I am going to review steps in first section of the task sequence .
Task sequence explained in Part 3 is basically divided into 2 groups
1st group is Execute task Sequence
2nd group is Copy logs
Execute Task Sequence
As seen below , 1st group is set to continue on error. What this means is that if task sequence fails at any step before 2nd group it will not abort the task sequence instead it will go to 2nd group Copy logs.
Partition if necessary
This is group as-is from MDT standard client task sequence . This group evaluates few conditions before executing next step.
As you can see from screen capture above All the conditions need to be true for this step to run
_SMSTSInWinPE equals TRUE – This is first condition that is processed , If the task sequence is the WinPE or not , If not in WinPE this step will be skipped.
_SMSTSMedia Type not equals OEMMedia – If the task sequence variable _SMSTSMediaType = OEMMedia this step will be skipped and disk will not be formatted. Because if prestage media is present then disk is ready and does not need to formatted. When a prestage media ( wim file) is created it has task sequence variable _SMSTSMediaType set to OEMMedia.
Last condition has is being evaluated is a WMI query and it has 3 conditions
Logical Disktype = 3 means a local disk , Device ID is the drive letter
Here is the condition that will be eventually gets evaluated –
if logical disk type is not equal to 3 this step will be skipped
Device ID is X: this step will be skipped
if file system is NTFS this step will be skipped
Next step is Script exists and non-NTFS partitions
This step will run when following conditions are met
If ZTIConfirmDiskPart.vbs exists
If DiskIndex = 0 , Disk index is the index number of a the disk containing this partition.
If disk partition type is “Installable file system” , other examples of partition types are FAT , Extended partition , NTFS , unknown etc.
if disk partition type is NTFS
If all the above conditions are true then task sequence moves to next step
Confirmation to Partition Disk
This step will will run the script as shown in the screen above
Format and Partition Disk (UEFI) .
This step will only run if the task sequence variable _SMSTSBootUEFI is true .
UEFI based computers have different requirements than BIOS based computers . Windows 8 uses UEFI .
GPT (GUID Partition table) type disk can have partitions of size 2.2 TB
GPT (GUID Partition table) also supports 128 partitions
Windows RE Tools – This partition should be separate from windows partition . No drive letter is assigned to this partition
This partition has two main functions
Support fail over of windows partitions
Support Booting from Bit locked partitions
EFI – EFI is the system partition of UEFI based computers. Computer boots from this partition . It is formatted with FAT32 . This partition is managed by Operating system and should not contain any other files.
MSR – Microsoft reserved partition – MSR partition is used for drive management. There is one MSR partition for each drive.
OSDisk – It is where operating system files reside along with data.
Format and partition
This step runs if task sequence variable _SMSTSBootUEFI is not true
This step is for computers with BIOS . It will install the OS in the drive. Formatted with NTFS
By default MDT standard client task sequence assigns it a task sequence variable to the drive named OSDTemporaryDrive. I removed the OSDTemporaryDrive and select next formatted partition from the list.
This concludes Part 4