Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows cannot parse the answer file's <diskconfiguration> setting

31 Jan 2014   #1
vlakarmis

Windows 7 64 Bit
 
 
Windows cannot parse the answer file's <diskconfiguration> setting

Hello,

I am currently studying to take the 70-680 in a week's time and am trying to build an answer file. Having done so and included in in the root directory of my Windows 7 USB installation disk, i get the following error: Windows cannot parse the answer file's <diskconfiguration> setting.

Here is what my answer file looks like:


<?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="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">
<SetupUILanguage>
<WillShowUI>OnError</WillShowUI>
<UILanguage>en-uk</UILanguage>
</SetupUILanguage>
<InputLocale>en-uk</InputLocale>
<SystemLocale>en-uk</SystemLocale>
<UILanguage>en-uk</UILanguage>
<UserLocale>en-uk</UserLocale>
</component>
<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>
<WillShowUI>OnError</WillShowUI>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Size>15000</Size>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Extend>false</Extend>
<Format>NTFS</Format>
<Label>OS_install</Label>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
<TypeID></TypeID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<WillShowUI>OnError</WillShowUI>
<InstallToAvailablePartition>true</InstallToAvailablePartition>
</OSImage>
</ImageInstall>
<UserData>
<ProductKey>
<Key>CQBVJ-9J697-PWB9R-4K7W4-2BT4J</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
<AcceptEula>true</AcceptEula>
<FullName>Test User</FullName>
<Organization>Testing</Organization>
</UserData>
<EnableFirewall>true</EnableFirewall>
<EnableNetwork>true</EnableNetwork>
<LogPath>C:\</LogPath>
<Restart>Restart</Restart>
<UseConfigurationSet>true</UseConfigurationSet>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-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">
<AutoLogon>
<Password>
<Value>TQBpAHIAawB3AG8AbwBkADEAUABhAHMAcwB3AG8AcgBkAA==</Value>
<PlainText>false</PlainText>
</Password>
<Domain>Corp.poshcleaning.com</Domain>
<Enabled>true</Enabled>
<LogonCount>1</LogonCount>
<Username>VM1</Username>
</AutoLogon>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-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">
<OOBE>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
<BluetoothTaskbarIconEnabled>true</BluetoothTaskbarIconEnabled>
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<DoNotCleanTaskBar>true</DoNotCleanTaskBar>
<ShowWindowsLive>true</ShowWindowsLive>
<StartPanelOff>true</StartPanelOff>
<TimeZone>GMT</TimeZone>
</component>
</settings>
<settings pass="offlineServicing">
<component name="Microsoft-Windows-Shell-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">
<OEMInformation>
<HelpCustomized>false</HelpCustomized>
<Manufacturer>Dream Catcher Design</Manufacturer>
<Model></Model>
<SupportHours>10:00 - 18:00</SupportHours>
<SupportPhone>0208 3549321</SupportPhone>
<SupportURL>www.dreamcatcherdesign.co.uk</SupportURL>
</OEMInformation>
</component>
</settings>
<settings pass="auditSystem">
<component name="Microsoft-Windows-Deployment" 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">
<Reseal>
<Mode>Audit</Mode>
</Reseal>
</component>
</settings>
<cpifflineImage cpi:source="wim://rami-pc/users/rami/desktop/windows%207%20image/install.wim#Windows 7 ENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


My System SpecsSystem Spec
.
31 Jan 2014   #2
Kari

Microsoft Community Contributor Award Recipient

 

Quote   Quote: Originally Posted by vlakarmis View Post
<DiskConfiguration>
<WillShowUI>OnError</WillShowUI>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Size>15000</Size>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Extend>false</Extend>
<Format>NTFS</Format>
<Label>OS_install</Label>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
<TypeID></TypeID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
Might be that you are trying to create an absolutely too small drive C:. The size is given in megabytes, your 15000MB means a bit under 15GB (14.6GB) partition.

This is also supported by the fact that validating your xml in WSIM gives no errors.

Kari
My System SpecsSystem Spec
01 Feb 2014   #3
vlakarmis

Windows 7 64 Bit
 
 

Thanks Kari. I have tried upping memory of the partition to 25gb but still no luck. Same error message. WSIM indicates an error unrelated to Diskconfiguration. Something to do with StarpanelOff being deprecated and 'should not be used' (i have no settings for Startpaneloff anyway)

Any ideas? Thanks in advance
My System SpecsSystem Spec
.

01 Feb 2014   #4
Kari

Microsoft Community Contributor Award Recipient

 

First, you should remove your Windows product key from the answer file in your first post.

I do not find any errors although I know there of course must be at least one if it does not work . See this tutorial if you can find any tips or things to check: System Preparation Tool - Use to Customize Windows

Here's a long quote of the tutorial, read it through and check your answer file again:

Quote:
Tip   Tip
As we are now preparing our partly installed Windows to be sysprepped, main core of Windows is already installed on C:. For this Windows setup it is not a good idea to change disk and partition information with Sysprep, for this setup modifiying partitions should be done with Windows Disk Manager.

However, if we were now creating a general Windows image to be deployed, used in installing Windows to other computers, we could also automatize the partitioning of the hard disk or disks. To give you an example how easy it is, here below you can see what would be needed to automatically partition a system with two 500GB hard disks creating a 250GB partition C: for system with name OS and a 250GB partition D: for user profiles named as UserProfiles, both these partition on first hard disk, and then use the second hd completely for one partition called Data and giving it a drive letter X:.

All partitioning components can be found in component group Microsoft Windows Setup > DiskConfiguration. We need one component for creating each partition and one component to modify each partition as follows (all settings in Pass 1 windowsPE):

Hard disk numbers start from 0, partition numbers from 1 therefore in this example C: = Disk 0 Partition 1, D: = Disk 0 Partition 2 and X: = Disk 1 Partition 1. Remembering this I need to browse to component group Microsoft-Windows-Setup > DiskConfiguration and start configuring. (Remember: all following components to Pass 1 windowsPE!)

First we create two disks and wipe them to be able to start from empty disks, Microsoft-Windows-Setup > DiskConfiguration > Disk, values to Pass 1 windowsPE
  • DiskID = 0
  • WillWipeDisk = true (this will erase the hard disk so partitions are created on an empty disk)
And the same for second hard disk:
  • DiskID = 1
  • WillWipeDisk = true
Next we create first partition on first disk. Component Microsoft-Windows-Setup > DiskConfiguration > Disk > CreatePartitions > CreatePartition, values to Pass 1 windowsPE
  • Extend = false
  • Order = 1
  • Size = 250000 (size in Megabytes)
  • Type = Primary
And second partition, component Microsoft-Windows-Setup > DiskConfiguration > Disk > CreatePartitions > CreatePartition, values to Pass 1 windowsPE
  • Extend = false
  • Order = 2
  • Size = 250000
  • Type = Primary
Finally the third, Data partition, first partition on second disk. Component Microsoft-Windows-Setup > DiskConfiguration > Disk > CreatePartitions > CreatePartition, values to Pass 1 windowsPE
  • Extend = false
  • Order = 1 (first partition of second HD)
  • Size = 500000
  • Type = Primary
Now we need to edit those three raw partitions. First C:

Microsoft-Windows-Setup > DiskConfiguration > Disk > ModifyPartitions > ModifyPartition, values to Pass 1 windowsPE:
  • Active = true
  • Extend = false
  • Format = NTFS
  • Label = OS (any name you want to give to your system partition)
  • Letter = C
  • Order = 1
  • PartitionID = 1
The D: partition:

Microsoft-Windows-Setup > DiskConfiguration > Disk > ModifyPartitions > ModifyPartition, values to Pass 1 windowsPE:
  • Active = false (only one partition can be active)
  • Extend = false
  • Format = NTFS
  • Label = UserProfiles (any name you want to)
  • Letter = D
  • Order = 2
  • PartitionID = 2
Last but not least the data partition X:

Microsoft-Windows-Setup > DiskConfiguration > Disk > ModifyPartitions > ModifyPartition, values to Pass 1 windowsPE:
  • Active = false
  • Extend = false
  • Format = NTFS
  • Label = Data
  • Letter = X
  • Order = 1
  • PartitionID = 1
Attachment 264090
These components with correct values would then create our two disk three partition system when Windows would be installed using our sysprepped image.
My System SpecsSystem Spec
Reply

 Windows cannot parse the answer file's <diskconfiguration> setting




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Unable to correctly parse lines in a .txt file through batch
Good Afternoon All, This is my first post so if I inadvertently insult anyone through my mannerism I apologize in advance. So the puzzle is that my company creates programs for our clients and would like me to create a batch file that can be placed on the desktop and auto-copy all of the...
General Discussion
WDS Unattend.xml answer file help needed
I have been trying to transition over to using WDS for my main method of Windows 7 image deployment in our Server 2008 R2 domain environment. I am having trouble with getting the answer file to work properly. I have read through multiple threads, posts, and guides including the guide on this site ...
Installation & Setup
Sysprep answer file
I have been reading a lot about imaging lately and I am starting to get it down. Somewhere in my searches I thought I read something about a program that will pull your system configuration and settings for you and create a sysprep answer file from it. I have read so much in the last few days...
Installation & Setup
Windows 7 Answer File Error Messages
When I try to save my Answer File that I've created for my Windows 7 PC I press on Tools and then on Validate Answer File, it give me in the sector Validation a lot of errors. In my book (MCTS 70 - 680), they say that I need to change my settings. Now is my question: How and which settings do I...
Performance & Maintenance
Windows cannot parse the unattend answer file's <DiskConfiguration>...
Hi there. I'm trying to do a clean install of Windows 7 Ultimate on a Sony Vaio AR41s via a DVD that I burned (slowest speed, was very careful about that) but upon starting the installation I get the error message: Windows cannot parse the unattend answer file's <DiskConfiguration> setting ...
Installation & Setup
Windows could not apply the unattend answer file's
I am getting this error when I am install Windows 7: Windows could not format a partition on disk 0 - error code 0x80004005 during a new install of Windows 7. I have tried both Home Premium x64 and Enterprise x64. Both falling into the same error: I've removed all partition using gparted,...
Installation & Setup


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 19:04.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App