graybags Posted April 7, 2014 Posted April 7, 2014 Hi, I know it's been mentioned before, but are there any plans to be able to have Win Toolkit be able to create auto partitions? In the meantime if anyone could tell me the xml that will just create one partition © to install Windows on I'd be very pleased. Or is the minimum 2 partions - one 100mb system one and the other Windows? Thanks, Graybags Quote
Thiersee Posted April 7, 2014 Posted April 7, 2014 (edited) Hi graybags, this is an example<settings pass="windowsPE"> <--------------- pass you must put this part in <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <UserData> <ProductKey> <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key> <WillShowUI>OnError</WillShowUI> </ProductKey> <AcceptEula>true</AcceptEula> <FullName>XXXXXX XXXXXX</FullName> <Organization>YYYYYYY</Organization> </UserData> <DiskConfiguration> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Type>Primary</Type> <Size>100</Size> <------------------------- 100 MB <Order>1</Order> </CreatePartition> <CreatePartition wcm:action="add"> <Type>Primary</Type> <Order>2</Order> <Extend>true</Extend> <---------------------- rest of HDD </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Label>Win7-HP-SP1</Label> <Letter>C</Letter> <Active>true</Active> <Extend>false</Extend> <Format>NTFS</Format> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Order>2</Order> <PartitionID>2</PartitionID> <Letter>D</Letter> <Label>Data</Label> <Format>NTFS</Format> <Active>false</Active> <Extend>false</Extend> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> <WillShowUI>OnError</WillShowUI> </DiskConfiguration> <ImageInstall> <OSImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall> Regards, Thiersee Edited April 7, 2014 by Thiersee Quote
graybags Posted April 8, 2014 Author Posted April 8, 2014 Thanks, Thiersee - much appreciated. In your example you set two partitions, the 100mb system drive and a second for the rest of the drive. This is fine, but does it have to be created in that way, with the 100mb partition? Thanks again. Quote
Thiersee Posted April 8, 2014 Posted April 8, 2014 .......This is fine, but does it have to be created in that way, with the 100mb partition? Thanks again.What do you mean? Thiersee Quote
graybags Posted April 8, 2014 Author Posted April 8, 2014 .......This is fine, but does it have to be created in that way, with the 100mb partition? Thanks again.What do you mean? Thiersee Your example creates more than one partition, I just wondered if it was possible to create literally just one partition for Windows, no small 100mb partition, just one partition the size of the hard disk called C:. Quote
Thiersee Posted April 8, 2014 Posted April 8, 2014 Of course is possible! <?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DiskConfiguration> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Order>1</Order> <Type>Primary</Type> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Active>true</Active> <Format>NTFS</Format> <Label>XYZ</Label> <Letter>C</Letter> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> </DiskConfiguration> <EnableFirewall>true</EnableFirewall> <EnableNetwork>true</EnableNetwork> <ImageInstall> <OSImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> </OSImage> </ImageInstall> </component> </settings> <cpi:offlineImage cpi:source="wim:e:/win7_prof_x64_de_sp1_x17-59885/sources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" /></unattend> Thiersee Quote
graybags Posted April 8, 2014 Author Posted April 8, 2014 Excellent thanks! Is there a reason that the 100mb is normally created? I always see it when I install Windows. Quote
Thiersee Posted April 8, 2014 Posted April 8, 2014 Excellent thanks! Is there a reason that the 100mb is normally created? I always see it when I install Windows.The reason is "Bitlocker" (Enterprose and Ultimate); the 100mb-partition will be created only on empty HDDs and only by Windows-setup. If you create one partition by autounattend.xml, this 100 MB partition will be not createdby Windows. Thiersee Quote
TRSyntax Posted April 22, 2014 Posted April 22, 2014 for windows bitlocker to work <CreatePartition wcm:action="add"> <Type>Primary</Type> <--------------------- this should be MSR <Size>100</Size> <Order>1</Order> </CreatePartition> the 100mb TPM partition should be set as a Microsoft Reserved partition. i'm not sure as of how imortant it is, but this way it will be hidden in the os.and if i recall correctly this is the way windows setup creates the bitlocker partition. To encrypt the drive that Windows is installed on (the operating system drive), BitLocker stores its own encryption and decryption key in a hardwaredevice that is separate from your hard disk, so you must have one of the following:A computer with Trusted Platform Module (TPM), which is a special microchip in many computers that supports advanced security features.If your computer was manufactured with TPM version 1.2 or higher, BitLocker will store its key in the TPM.A removable USB memory device, such as a USB flash drive. If your computer doesn’t have TPM version 1.2 or higher,BitLocker will store its key on the flash drive. This option is only available if your system administrator has set up yournetwork to allow the use of a startup key instead of the TPM.To turn on BitLocker Drive Encryption on the operating system drive, your computer’s hard disk must:Have at least two partitions: a system partition (which contains the files needed to start your computer and must be at least 200 MB)and an operating system partition (which contains Windows). The operating system partition will be encrypted and the system partitionwill remain unencrypted so your computer can start. If your computer doesn't have two partitions, BitLocker will create them for you.Both partitions must be formatted with the NTFS file system.Have a BIOS that is compatible with TPM or supports USB devices during computer startup. If this isn't the case, you will need toupdate the BIOS before using BitLocker. different types:http://technet.microsoft.com/en-us/library/ff715563.aspx Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.