Kiavik Posted December 5, 2011 Posted December 5, 2011 Hello!I'm trying to make an fully unattended Windows 7 Enterprise DVD but I'm already struggling in the first steps like the disk partitioning... Since I'll be using this dvd to install Win7Ent on different HW, I don't know the size of the disk thus I just want the unattended setup to create a single partition that fills the whole disk; the xml file I've created is as follows: <settings pass="windowsPE"> <component name="Microsoft-Windows-Setup" processorArchitecture="x86" 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> <WillShowUI>OnError</WillShowUI> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Extend>true</Extend> <Type>Primary</Type> <Order>1</Order> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Active>true</Active> <Extend>true</Extend> <Format>NTFS</Format> <Label>Win7Ent</Label> <Order>1</Order> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> </DiskConfiguration> <UserData> <AcceptEula>true</AcceptEula> <Organization>Contoso</Organization> </UserData> <ImageInstall> <OSImage> <InstallToAvailablePartition>true</InstallToAvailablePartition> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall> </component> <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SetupUILanguage> <UILanguage>it-IT</UILanguage> </SetupUILanguage> <UILanguage>it-IT</UILanguage> <UserLocale>it-IT</UserLocale> <SystemLocale>it-IT</SystemLocale> <InputLocale>it-IT</InputLocale> </component> </settings>Does anyone knows how to make it work?Thanks to all who can help
myselfidem Posted December 5, 2011 Posted December 5, 2011 (edited) This can be done like this: For BIOS Based systemExample<?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="[url="http://schemas.microsoft.com/WMIConfig/2002/State"]http://schemas.microsoft.com/WMIConfig/2002/State[/url]" xmlns:xsi="[url="http://www.w3.org/2001/XMLSchema-instance"]http://www.w3.org/2001/XMLSchema-instance[/url]"> <SetupUILanguage> <UILanguage>it-IT</UILanguage> </SetupUILanguage> <InputLocale>0410:00000410</InputLocale> <SystemLocale>it-IT</SystemLocale> <UILanguage>it-IT</UILanguage> <UserLocale>it-IT</UserLocale> </component> <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="[url="http://schemas.microsoft.com/WMIConfig/2002/State"]http://schemas.microsoft.com/WMIConfig/2002/State[/url]" xmlns:xsi="[url="http://www.w3.org/2001/XMLSchema-instance"]http://www.w3.org/2001/XMLSchema-instance[/url]"> <DiskConfiguration> <WillShowUI>OnError</WillShowUI> <Disk wcm:action="add"> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> <!--System partition--> <CreatePartitions> <CreatePartition wcm:action="add"> <Order>1</Order> <Type>Primary</Type> <Size>100</Size> </CreatePartition> <CreatePartition wcm:action="add"> <Order>2</Order> <Type>Primary</Type> <Extend>true</Extend> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Active>true</Active> <Format>NTFS</Format> <Label>system</Label> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> <!--Windows partition--> <ModifyPartition wcm:action="add"> <Format>NTFS</Format> <Label>Win7Ent</Label> <Letter>C</Letter> <Order>2</Order> <PartitionID>2</PartitionID> </ModifyPartition> </ModifyPartitions> </Disk> </DiskConfiguration> <ImageInstall> <OSImage> <InstallFrom> <MetaData wcm:action="add"> <Key>/IMAGE/NAME</Key> <Value>Windows 7 ENTERPRISE</Value> </MetaData> </InstallFrom> <InstallTo> <DiskID>0</DiskID> <PartitionID>2</PartitionID> </InstallTo> <WillShowUI>OnError</WillShowUI> <InstallToAvailablePartition>false</InstallToAvailablePartition> </OSImage> </ImageInstall> <UserData> <ProductKey> <WillShowUI>OnError</WillShowUI> <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key> </ProductKey> <AcceptEula>true</AcceptEula> <Organization>Contoso</Organization> </UserData>Image System partition and Windows partition Edited December 6, 2011 by myselfidem
Kiavik Posted December 6, 2011 Author Posted December 6, 2011 Thanks for your reply but unfortunately the xml you proposed works only partially, it does create the system partition but it shows up in My Computer as a D: drive and in disk management it says "System D: (Healty, Primary Partition)" while on my workstation (installed manually) it shows up as "System Reserved (Healty, System, Primary Partition)".When you install windows manually and you repartition the drive the setup automatically creates the System Reserved partition which doesn't show up in My Computer. Has anyone been able to recreate the standard setup behaviour in an unattended setup?
myselfidem Posted December 6, 2011 Posted December 6, 2011 No errors for me! Letter C:\ for Windows 7.Have you an BIOS-Based system or UEFI-Based system?Because Autounattend.xml file isn't the same for Create Partitions!
Kiavik Posted December 6, 2011 Author Posted December 6, 2011 I have bios based systems but I tried the xml you gave me on a virtual machine and it created the D: partition. In case I am wrong, how can I see if a system is UEFI-based?
myselfidem Posted December 6, 2011 Posted December 6, 2011 (edited) Please attach your Autounattend.xml file!If you don't want to see the system partition you can use Autounattend.xml file (BIOS-Based system), like this:<DiskConfiguration> <WillShowUI>OnError</WillShowUI> <Disk wcm:action="add"> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> <CreatePartitions> <CreatePartition wcm:action="add"> <Order>1</Order> <Type>Primary</Type> <Extend>true</Extend> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Format>NTFS</Format> <Label>SEVEN</Label> <Letter>C</Letter> <Order>1</Order> <Active>true</Active> <PartitionID>1</PartitionID> </ModifyPartition> </ModifyPartitions> </Disk> </DiskConfiguration> <ImageInstall> <OSImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> <WillShowUI>OnError</WillShowUI> <InstallToAvailablePartition>false</InstallToAvailablePartition> </OSImage> </ImageInstall>Tested successfuly!Image One Disk Edited December 6, 2011 by myselfidem
Kiavik Posted December 6, 2011 Author Posted December 6, 2011 The first working Autounattend.xml file I was able to make was like yours but it didn't create the 100 MB System Reserved partition. This is my pc's disk configuration (installed manually) which has the 100 MB System Reserved partition: I tried this xml: <DiskConfiguration> <WillShowUI>OnError</WillShowUI> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Extend>true</Extend> <Type>Primary</Type> <Order>2</Order> </CreatePartition> <CreatePartition wcm:action="add"> <Order>1</Order> <Size>100</Size> <Type>MSR</Type> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Active>true</Active> <Format>NTFS</Format> <Label>Win7Ent</Label> <Letter>C</Letter> <Order>2</Order> <PartitionID>2</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Active>true</Active> <Format>NTFS</Format> <Label></Label> <Order>1</Order> <PartitionID>1</PartitionID> <TypeID>e3c9e316-0b5c-4db8-817d-f92df00215ae</TypeID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> </DiskConfiguration>but it's a mix between BIOS and UEFI unattended file so I get this error: which means "Unable to set as active a partition on disk 0. The destination disk, partition or volume doesn't support the specified operation. The error occurred while applying the <DiskConfiguration> section of the answer file." I also tried to set the TypeID in the ModifyPartition tag to 0x27 which means Utility Partition (the help says it's used for "Recovery tools such as Windows RE and other system utilities."), the resulting partition was hidden but didn't have the same attributes as the partition in the DiskOK.jpg picture.I really have no idea how to recreate the 100mb partition that is automatically created while performing an attended setup and can't find any info about it...
myselfidem Posted December 6, 2011 Posted December 6, 2011 I think you can't mix BIOS-Based system and UEFI-Based system with your Autounattend.xml file!
Kiavik Posted December 6, 2011 Author Posted December 6, 2011 I suspected that but I gave it a shot anyway. It seems there is no way to recreate the 100 mb partition the same way the attended setup creates it using the unattended setup. Either you don't create it at all or you create something that is not the same thing.
myselfidem Posted December 6, 2011 Posted December 6, 2011 (edited) I really have no idea how to recreate the 100mb partition that is automatically created while performing an attended setup and can't find any info about it...Look at my first example above (and the image added)!Again: attach your Autounattend.xml file, please (BIOS-Based system)! Edited December 6, 2011 by myselfidem
Kiavik Posted December 6, 2011 Author Posted December 6, 2011 (edited) Thank you! I think I found out what was causing the misbehaviour: <ImageInstall> <OSImage> <InstallToAvailablePartition>true</InstallToAvailablePartition> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall>I suppose that setting InstallToAvailablePartition to true caused the setup to try to install the OS in the 100MB System partition assigning it a letter and showing it in My computer.With this xml instead, <component name="Microsoft-Windows-Setup" processorArchitecture="x86" 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> <WillShowUI>OnError</WillShowUI> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Order>1</Order> <Size>100</Size> <Type>Primary</Type> </CreatePartition> <CreatePartition wcm:action="add"> <Order>2</Order> <Extend>true</Extend> <Type>Primary</Type> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Active>true</Active> <Format>NTFS</Format> <Label>System</Label> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Format>NTFS</Format> <Label>Win7Ent</Label> <Letter>C</Letter> <Order>2</Order> <PartitionID>2</PartitionID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> </DiskConfiguration> <UserData> <AcceptEula>true</AcceptEula> <Organization>Pippo</Organization> </UserData> <ImageInstall> <OSImage> <InstallToAvailablePartition>false</InstallToAvailablePartition> <WillShowUI>OnError</WillShowUI> <InstallTo> <DiskID>0</DiskID> <PartitionID>2</PartitionID> </InstallTo> </OSImage> </ImageInstall> </component>it created both partitions leaving the 100MB hidden with the correct attributes like the DiskOK.jpg picture I posted before.Thanks for the help! Edited December 6, 2011 by Kiavik
myselfidem Posted December 6, 2011 Posted December 6, 2011 Thank you! I think I found out what was causing the misbehaviour: <ImageInstall> <OSImage> <InstallToAvailablePartition>true</InstallToAvailablePartition> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall>I suppose that setting InstallToAvailablePartition to true caused the setup to try to install the OS in the 100MB System partition assigning it a letter and showing it in My computer.Thanks for the help!Yes! If you see carefully my examples above, you will see:<InstallToAvailablePartition>false</InstallToAvailablePartition>Enjoy!
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now