Compartir a través de


ExtendOSPartition

Applies To: Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista

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.

Child Elements

Extend

Specifies whether to extend the partition to fill the entire hard disk.

Size

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.

Note

If both of these are set, an error is logged, and installation is terminated.

Valid Passes

auditSystem

generalize

oobeSystem

specialize

Parent Hierarchy

Microsoft-Windows-Deployment | ExtendOSPartition

Applies To

For a list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Deployment.

XML Example

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>

See Also

Concepts

Microsoft-Windows-Deployment