start up Windows SIM and select Microsoft-Windows-Setup from the choices in the Components section of Windows Image. Expand DiskConfiguration and then right-click on Disk and choose Add Setting to Pass 1 windowsPE
set the DiskID to "0" in properties
Note: if you try to deploy and get an error message stating Windows could not create a partition on disk 0. The error occurred while applying the unattend answer file's <DiskConfiguration> setting. Error Code:0x80004005 then set the WillWipeDisk to true
Partition the hard disc
Now we want to partition the hard disk to be 40GB in size so add the Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition component to the windowsPE pass.
set the properties to order=1, size=40000 and type=primary
Mark as active and format with NTFS
Add the Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition node to the windowsPE pass
edit your settings like this, make sure to set order and partition ID or this will not work...
Tell Windows where to install to
Now that we've got our hard disc sorted we need to tell Windows where to install to, so add the Microsoft-Windows-Setup\ImageInstall\OSImage\InstallTo node to the windowsPE configuration pass
set the DiskID to 0 and PartitionID to 1
Add more partitions
If you want to add more partitions you can do so as follows:
Right-click on CreatePartitions and choose Insert New CreatePartition
when the properties screen appears, fill in the values for Order, Size and Type (do not set Extend to True if Size is set to a value)
Now that we have created our new partition, you need to modify it, so right click on ModifyPartitions and choose Insert New Modify Parition
make your changes to the properties paying close attention to the Order and PartitionID values otherwise the deployment won't work
validate your answer file by clicking on the validate button
here's some sample (working) code from an XML file i've made, in this sample it makes 3 partitions, C, D, and E, C is for the Os, D for Data and E for other.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Add component to Answer File
start up Windows SIM and select Microsoft-Windows-Setup from the choices in the Components section of Windows Image. Expand DiskConfiguration and then right-click on Disk and choose Add Setting to Pass 1 windowsPE
set the DiskID to "0" in properties
Note: if you try to deploy and get an error message stating Windows could not create a partition on disk 0. The error occurred while applying the unattend answer file's <DiskConfiguration> setting. Error Code:0x80004005 then set the WillWipeDisk to true
Partition the hard disc
Now we want to partition the hard disk to be 40GB in size so add the Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition component to the windowsPE pass.
set the properties to order=1, size=40000 and type=primary
Mark as active and format with NTFS
Add the Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition node to the windowsPE pass
edit your settings like this, make sure to set order and partition ID or this will not work...
Tell Windows where to install to
Now that we've got our hard disc sorted we need to tell Windows where to install to, so add the Microsoft-Windows-Setup\ImageInstall\OSImage\InstallTo node to the windowsPE configuration pass
set the DiskID to 0 and PartitionID to 1
Add more partitions
If you want to add more partitions you can do so as follows:
Right-click on CreatePartitions and choose Insert New CreatePartition
when the properties screen appears, fill in the values for Order, Size and Type (do not set Extend to True if Size is set to a value)
Now that we have created our new partition, you need to modify it, so right click on ModifyPartitions and choose Insert New Modify Parition
make your changes to the properties paying close attention to the Order and PartitionID values otherwise the deployment won't work
validate your answer file by clicking on the validate button
here's some sample (working) code from an XML file i've made, in this sample it makes 3 partitions, C, D, and E, C is for the Os, D for Data and E for other.
once the deployment is complete, you can see your partitions listed in Explorer
Share this post
Link to post
Share on other sites