are you using Provisioning or OSD for deploying the image?
In provisioning, we have a Post-OS install task to expand the partition. we specify the disk, partition id, and leave size blank
Thx for your answer i use OSD for this case.
I believe you will need to do that within your unattend.xml file.
ExtendOemPartition = 1 (extend to the end of the disk)
Here's a Microsoft Support Page: http://support.microsoft.com/kb/240126
You might could be use the Pre-boot section and use diskpart in the RunOnce section. I'm not sure the parameters you would use though.
On a side not, I would recommend giving Provisioning a try if it's possible in your environment. It gives you alot of flexiblity with your deployment tasks.
Ok i will check this MS support page and thx again for your help.
In a typical OSD script there is a line that looks like this: REMEXEC40=ldrun diskinfo extend_last_partition
That line will extend the last partition on the disk. Check to make sure that line is in your script. If it is, check your partition list in diskpart. There may be a hidden partition at the end (such as a recovery partition) that was captured and therefore is being expanded as the final partition.
Thx for your answer, yes there was a hidden partition.
ok will try it again soon.
What would be the answer if using Provisioning?
If you are using imagew you can simply ensure that the /x option is set on the deploy image action.
If you want to expand a specific partition, you can add a partition action, and expand the partition you want.