So I am looking to create a provisioning template that I plan to include in future image deployment provisioning templates. I would like this disk-prep template to wipe a hard drive clean, then lay down 2 formatted partitions of varying sizes according to variables.
Today I have tried a template that uses a combination of actions I found on other templates.
1)Diskpart.exe -s x:\ldclient\rmvol.txt
-listed as "Remove all volume assignments"
2)REMOVE ALL PARTITIONS
-this is an action item
-another action item
-yet another action item
-surprise, another action item.
-then 3-5 repeat a 2nd time to create and format my 2nd partition.
This template HANGS at the 2nd instance of FORMAT PARTITION; The console window on the client reports the following:
Disk 0 is now the selected disk.
Partition 2 is now the selected partition.
DiskPart successfully assigned the drive letter or mount point.
waiting for DiskPart to complete........
Nothing happens after this; the LDMS console reports that the provisioning task remains in the RUNNING state long after the client seemed to be last responding to the provisioning task.
-can anyone suggest what I have done wrong or provide a sample template that does what I need?