Open up WSIM (IF your are not sure how, read Here.) 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
Partition the hard disc
Now we want to partition the hard disk to be , let's say 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
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
Now 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. done.
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
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 , let's say 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
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
Now 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. done.
Echo_Platoon wrote:Good job on this, Neuropass.
As far as the 100 MB partition, it shouldn't get a drive letter if configured/set up properly. If done properly, C: would still be your "Windows" drive and D: would still be your "Data" drive. That 100 MB partition contains the Windows Recovery Environment as well as stuff for BitLocker and boot files with boot manager.
If you want to keep this 100 MB partition but don't want it to have a drive letter, you add the following line to the Modify Partition part of the XML file for that partition:Code: Select all<TypeID>0x27</TypeID>
Here's an example taken from a working XML file:Code: Select all<ModifyPartition wcm:action="add">
<Order>1</Order>
<PartitionID>1</PartitionID>
<Label>Recovery</Label>
<Format>NTFS</Format>
<TypeID>0x27</TypeID>
</ModifyPartition>
Get full forum access here! || Follow us || Rules || 1 fee, download them all!
Giin70 Said:"im busier than a 3 legged cat on a frozen pond scratching for a place to poop..."
He also Said:"Maybe we can ship yall off to mamby pamby land to look to self confidence, ya jackwagon."
Then"your about as useless as tits on a boar
And:"headspace and keyboard timing issue on end user end"
Always have a back up plan for your back up plan.
My Pc Specs: My Rig!
Giin70 Said:"im busier than a 3 legged cat on a frozen pond scratching for a place to poop..."
He also Said:"Maybe we can ship yall off to mamby pamby land to look to self confidence, ya jackwagon."
Then"your about as useless as tits on a boar
And:"headspace and keyboard timing issue on end user end"
Always have a back up plan for your back up plan.
My Pc Specs: My Rig!