Link to home
Start Free TrialLog in
Avatar of hyperbyte
hyperbyteFlag for United Kingdom of Great Britain and Northern Ireland

asked on

WDS Answer File to Create Partition Size of HDD

Hi,

I have an unattended answer file that I would like to edit.  My answer file is working fine but I received an error today because it was trying to create a partition bigger than the capacity of the drive.  I need to edit the below so that it creates the windows installation partition to the full size of the drive regardless of how big it may be.

<DiskConfiguration>
                <WillShowUI>OnError</WillShowUI>
                <Disk>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                    <CreatePartitions>
                        <CreatePartition>
                            <!-- Create the system partition -->
                            <Order>1</Order>
                            <Type>Primary</Type>
                            <Size>100</Size>
                        </CreatePartition>
                        <!-- Create the Windows partition -->
                        <CreatePartition>
                            <Order>2</Order>
                            <Type>Primary</Type>
                            <Size>90000</Size>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <!-- Modify the system partition -->
                        <ModifyPartition>
                            <Order>2</Order>
                            <PartitionID>1</PartitionID>
                            <Format>NTFS</Format>
                            <Label>System</Label>
                            <Active>true</Active>
                        </ModifyPartition>
                        <!-- Modify the Windows partition -->
                        <ModifyPartition>
                            <Order>1</Order>
                            <PartitionID>2</PartitionID>
                            <Format>NTFS</Format>
                            <Label>Windows</Label>
                            <Letter>C</Letter>
                        </ModifyPartition>
                    </ModifyPartitions>
                </Disk>
            </DiskConfiguration>


Thank you
ASKER CERTIFIED SOLUTION
Avatar of footech
footech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hyperbyte

ASKER

Thank you for the response.

Do you mean like this:

<DiskConfiguration>
                <WillShowUI>OnError</WillShowUI>
                <Disk>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                    <CreatePartitions>
                        <CreatePartition>
                            <!-- Create the system partition -->
                            <Order>1</Order>
                            <Type>Primary</Type>
                            <Size>100</Size>
                        </CreatePartition>
                        <!-- Create the Windows partition -->
                        <CreatePartition>
                            <Order>2</Order>
                            <Type>Primary</Type>
                            <Extend>True</Extend>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <!-- Modify the system partition -->
                        <ModifyPartition>
                            <Order>2</Order>
                            <PartitionID>1</PartitionID>
                            <Format>NTFS</Format>
                            <Label>System</Label>
                            <Active>true</Active>
                        </ModifyPartition>
                        <!-- Modify the Windows partition -->
                        <ModifyPartition>
                            <Order>1</Order>
                            <PartitionID>2</PartitionID>
                            <Format>NTFS</Format>
                            <Label>Windows</Label>
                            <Letter>C</Letter>
                        </ModifyPartition>
                    </ModifyPartitions>
                </Disk>
            </DiskConfiguration>
Yes.