ExtendOSPartition specifies whether to extend the partition on which you are installing Windows. This setting is required for scenarios in which a customer has installed the Windows image, by using a sector-based imaging solution and now plans on extending the partition.
These settings are valid only for NTFS file system partitions.
Specifies whether to extend the partition to fill the entire hard disk.
Specifies the size of the extension, in megabytes. If the total value of the current size of the partition plus this setting exceeds the available space, then the partition is not extended.
If both of these are set, an error is logged, and installation terminates.
Microsoft-Windows-Deployment | ExtendOSPartition
For the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Deployment.
The following XML output shows a deployment with no asynchronous or synchronous commands.
<AuditComputerName> <MustReboot>true</MustReboot> <Name>MyComputer</Name> </AuditComputerName> <ExtendOSPartition> <Extend>true</Extend> </ExtendOSPartition> <Reseal> <ForceShutdownNow>true</ForceShutdownNow> <Mode>Audit</Mode> </Reseal>