none
Autounattend.xml fails to wipe/create new partitions - <DiskConfiguration> - Using WSIM RRS feed

  • Question

  • Hi,

    I've been trying to create my own Autounattend.xml file so that my Win 7 installations goes 100% automatic.

    However after couple of days without success I would like to ask for some help.

    The autounattend does work as far as to the DiskConfiguration where it fails, it doesn't wipe the disk nor create the partitions that I ask it to do. I've been searching on the forum and I see that there's a lot of people having the same issue however I can't get mine to work..

    If it matters or not, anyway when I come to the disk configuration screen I try to press Next and it just says "Setup was unable to create a new system partition or locate and existing system partition. See the Setup log files for more information."

    Can anyone out there go through my code to see if there is anything that has to be added/removed/changed?

    I appreciate it, thanks!

    <?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>
                    <UILanguage>en-US</UILanguage>
                </SetupUILanguage>
                <UILanguage>en-US</UILanguage>
            </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">
                <UserData>
                    <ProductKey>
                        <WillShowUI>Never</WillShowUI>
                        <Key></Key>
                    </ProductKey>
                    <AcceptEula>true</AcceptEula>
                    <FullName>Test</FullName>
                    <Organization>TestTest</Organization>
                </UserData>
                <ImageInstall>
                    <OSImage>
                        <InstallTo>
                            <DiskID>0</DiskID>
                            <PartitionID>2</PartitionID>
                        </InstallTo>
                        <InstallToAvailablePartition>true</InstallToAvailablePartition>
                        <WillShowUI>OnError</WillShowUI>
                    </OSImage>
                </ImageInstall>
                <DiskConfiguration>
                    <WillShowUI>OnError</WillShowUI>
                    <Disk wcm:action="add">
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Order>2</Order>
                                <Size>20000</Size>
                                <Type>Primary</Type>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Order>1</Order>
                                <Size>100</Size>
                                <Type>Primary</Type>
                            </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="modify">
                                <Active>true</Active>
                                <Extend>true</Extend>
                                <Format>NTFS</Format>
                                <Label>Win 7</Label>
                                <Letter>C</Letter>
                                <Order>2</Order>
                                <PartitionID>2</PartitionID>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="modify">
                                <Active>true</Active>
                                <Format>NTFS</Format>
                                <Label>System</Label>
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <DiskID>0</DiskID>
                        <WillWipeDisk>true</WillWipeDisk>
                    </Disk>
                </DiskConfiguration>
            </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">
                <UserAccounts>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>MQAyADMANAA1ADYAUABhAHMAcwB3AG8AcgBkAA==</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Description>TestUser</Description>
                            <DisplayName>Test</DisplayName>
                            <Group>Administrators</Group>
                            <Name>Test</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <AutoLogon>
                    <Password>
                        <Value>MQAyADMANAA1ADYAUABhAHMAcwB3AG8AcgBkAA==</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <Enabled>true</Enabled>
                    <Username>Test</Username>
                </AutoLogon>
                <OOBE>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>3</ProtectYourPC>
                </OOBE>
            </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">
                <TimeZone>Eastern Standard Time</TimeZone>
                <ComputerName>Standalone Win7</ComputerName>
                <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
            </component>
        </settings>
        <settings pass="offlineServicing">
            <component name="Microsoft-Windows-LUA-Settings" 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">
                <EnableLUA>false</EnableLUA>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="catalog://REMOVED/gpg/windows 7 pro sp1 x64/sources/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    
    Cheers!
    Tuesday, October 27, 2015 8:17 AM

Answers

  • The XML sample I posted was right out of the XML i use to deploy Windows 10 Pro from DVD. I have not seen the behaviour you mention. Fortunately there is a way to see what is happening. When you get an option to interact with setup, you can press SHIFT+F10 to get a CMD. Then you can run Notepad to look at the log file. Look in x:\windows\panther.

    Friday, October 30, 2015 6:59 PM
  • Hi rite,

    Yes, I agree with Tripredacus.

    It should be:
            <ModifyPartitions>
                            <ModifyPartition wcm:action="modify">
                                <Active>true</Active>
                                <Format>NTFS</Format>
                                <Label>System</Label>
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="modify">
                              <Extend>true</Extend>
                                <Format>NTFS</Format>
                                <Label>Win 7</Label>
                                <Letter>C</Letter>
                                <Order>2</Order>
                                <PartitionID>2</PartitionID>
                            </ModifyPartition>
                        </ModifyPartitions>

    Best regards


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Thursday, October 29, 2015 8:29 AM
    Moderator

All replies

  • Hey guys,

    an update on this is that the partitioning actually works, however it's still not automatic. I get to the DiskConfiguration screen and all I have to do is to press the Next-button and it proceeds.

    How can I get this to be 100% automatic?

    I've only made changes to the ModifyPartitions section, basically I just set the Win7 partition to active instead of having them both as active.

                        <ModifyPartitions>
                            <ModifyPartition wcm:action="modify">
                                <Active>true</Active>
                                <Extend>true</Extend>
                                <Format>NTFS</Format>
                                <Label>Win 7</Label>
                                <Letter>C</Letter>
                                <Order>2</Order>
                                <PartitionID>2</PartitionID>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="modify">
                                <Active>false</Active>
                                <Format>NTFS</Format>
                                <Label>System</Label>
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                            </ModifyPartition>
                        </ModifyPartitions>

    The InstallTo should be correct but I still have to choose, as I said above.. :(

                        <InstallTo>
                            <DiskID>0</DiskID>
                            <PartitionID>2</PartitionID>
                        </InstallTo>

    I don't know if any of you care, however I would really appreciate if you could just give me a hint or anything.

    Cheers!

    Tuesday, October 27, 2015 1:16 PM
  • Set your system partition to be active, not your OS partition.
    Tuesday, October 27, 2015 7:17 PM
  • Hi rite,

    Yes, I agree with Tripredacus.

    It should be:
            <ModifyPartitions>
                            <ModifyPartition wcm:action="modify">
                                <Active>true</Active>
                                <Format>NTFS</Format>
                                <Label>System</Label>
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="modify">
                              <Extend>true</Extend>
                                <Format>NTFS</Format>
                                <Label>Win 7</Label>
                                <Letter>C</Letter>
                                <Order>2</Order>
                                <PartitionID>2</PartitionID>
                            </ModifyPartition>
                        </ModifyPartitions>

    Best regards


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Thursday, October 29, 2015 8:29 AM
    Moderator
  • Set your system partition to be active, not your OS partition.

    Hey,

    I just tried this and the installation still stops me at the disk configuration step.

    When the installation is finished I can see that the partitioning is working but it's not automatic, I still have to press the Next-button in the DiskConfiguration step.

    It should be possible to get it to wipe, create/modify partitions by itself using Autounattend.xml right? I just want to be 100% sure that it's actually possible.. I'm fairly new in this..

    Thanks.

    Thursday, October 29, 2015 10:33 AM
  • Yes it should. Try just making a single partition.

                <DiskConfiguration>
                    <Disk wcm:action="add">
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Active>true</Active>
                                <Extend>true</Extend>
                                <Format>NTFS</Format>
                                <Label>System</Label>
                                <Letter>C</Letter>
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <DiskID>0</DiskID>
                        <WillWipeDisk>true</WillWipeDisk>
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Order>1</Order>
                                <Size>20480</Size>
                                <Extend>false</Extend>
                                <Type>Primary</Type>
                            </CreatePartition>
                        </CreatePartitions>
                    </Disk>
                    <WillShowUI>OnError</WillShowUI>
                </DiskConfiguration>

    Thursday, October 29, 2015 7:52 PM
  • I tried to use only one partition as you suggested, still the same issue.

    I even tried to change the ModifyPartition action to modify, just to see if it would do anything for me, however still the same result. It get's stuck at the same step over and over again.

    I tried with different PCs also. Still no luck :/

    Friday, October 30, 2015 1:56 PM
  • The XML sample I posted was right out of the XML i use to deploy Windows 10 Pro from DVD. I have not seen the behaviour you mention. Fortunately there is a way to see what is happening. When you get an option to interact with setup, you can press SHIFT+F10 to get a CMD. Then you can run Notepad to look at the log file. Look in x:\windows\panther.

    Friday, October 30, 2015 6:59 PM
  • Oh, I forgot about the logfile...

    If I'd just checked in there before.

    The Issue with my XML was that both <InstallTo> and <InstalltoAvailablePartition> were specified. I've deleted <InstalltoAvailablePartition> and now it's automatic!

    Thanks Tripredacus for the help, you're worth all gold in the world!


    • Edited by ritte Monday, November 2, 2015 7:56 AM
    Monday, November 2, 2015 7:56 AM