AutoUnattend.xml Partitioning Failure

Page 2 of 7 FirstFirst 1234 ... LastLast

  1. Posts : 17,661
    Windows 10 Pro
       #11

    Vincint said:
    I just tried the AutoUnattend.xml again, and it still stops at Disk Configuration and does not create or modify the partitions. Seriously, I know this is just something stupid, and something that I am just either not aware of or am overlooking, but this is driving me crazy! HELP! lol
    This would be much easier for you, if you just followed instructions.

    As was with <Active> tags in <ModifyPartition> for GPT disk, also the <Extend> tags have nothing to in <ModifyPartition>, just making partitioning to fail. In your last answer file, partitions 2 and 3 have this unnecessary, completely wrong setting.

    You set the size of the partition or extend it if / when necessary in <CreatePartition>. In <ModifyPartition> you then tell how to format and label that partition. Because size is already known, or instead of size if that partition will be extended to use all remaining space, you do not put the size again in <ModifyPartition>.

    You mentioned that you have read my tutorials. Simple instructions for partitioning in answer file, what belongs where can be found in steps 3.11 through 3.18 in this tutorial: Create media for automated unattended install of Windows 10

    Kari
      My Computer


  2. Posts : 8
    Windows 10 Pro 1803
    Thread Starter
       #12

    I feel like a tool who just cheated at a video game or something, but while doing more research, I stumbled over this site which auto generates an unattend file for you. I grabbed the code for Disk Configuration and replaced the code in my XML file and tested it, and I am not sure why, but it worked!!! Below is said code:

    <DiskConfiguration>
    <Disk wcm:action="add">
    <DiskID>0</DiskID>
    <WillWipeDisk>true</WillWipeDisk>
    <CreatePartitions>
    <!-- Windows RE Tools partition -->
    <CreatePartition wcm:action="add">
    <Order>1</Order>
    <Type>Primary</Type>
    <Size>300</Size>
    </CreatePartition>
    <!-- System partition (ESP) -->
    <CreatePartition wcm:action="add">
    <Order>2</Order>
    <Type>EFI</Type>
    <Size>100</Size>
    </CreatePartition>
    <!-- Microsoft reserved partition (MSR) -->
    <CreatePartition wcm:action="add">
    <Order>3</Order>
    <Type>MSR</Type>
    <Size>128</Size>
    </CreatePartition>
    <!-- Windows partition -->
    <CreatePartition wcm:action="add">
    <Order>4</Order>
    <Type>Primary</Type>
    <Extend>true</Extend>
    </CreatePartition>
    </CreatePartitions>
    <ModifyPartitions>
    <!-- Windows RE Tools partition -->
    <ModifyPartition wcm:action="add">
    <Order>1</Order>
    <PartitionID>1</PartitionID>
    <Label>WINRE</Label>
    <Format>NTFS</Format>
    <TypeID>DE94BBA4-06D1-4D40-A16A-BFD50179D6AC</TypeID>
    </ModifyPartition>
    <!-- System partition (ESP) -->
    <ModifyPartition wcm:action="add">
    <Order>2</Order>
    <PartitionID>2</PartitionID>
    <Label>System</Label>
    <Format>FAT32</Format>
    </ModifyPartition>
    <!-- MSR partition does not need to be modified -->
    <ModifyPartition wcm:action="add">
    <Order>3</Order>
    <PartitionID>3</PartitionID>
    </ModifyPartition>
    <!-- Windows partition -->
    <ModifyPartition wcm:action="add">
    <Order>4</Order>
    <PartitionID>4</PartitionID>
    <Label>OS</Label>
    <Letter>C</Letter>
    <Format>NTFS</Format>
    </ModifyPartition>
    </ModifyPartitions>
    </Disk>
    </DiskConfiguration>


    As is evinced above, the code is slightly different than my previous posted disk config, but if it works, I will take it as a win!
      My Computer


  3. Posts : 17,661
    Windows 10 Pro
       #13

    Vincint said:
    As is evinced above, the code is slightly different than my previous posted disk config, but if it works, I will take it as a win!
    It works now because your new answer file took care of the error I told about in my last post:

    Kari said:
    As was with <Active> tags in <ModifyPartition> for GPT disk, also the <Extend> tags have nothing to in <ModifyPartition>, just making partitioning to fail. In your last answer file, partitions 2 and 3 have this unnecessary, completely wrong setting.

    You set the size of the partition or extend it if / when necessary in <CreatePartition>. In <ModifyPartition> you then tell how to format and label that partition. Because size is already known, or instead of size if that partition will be extended to use all remaining space, you do not put the size again in <ModifyPartition>.
    Anyway, main thing is it works now for you.

    Kari
      My Computer


  4. Posts : 4,188
    Windows 11 Pro, 22H2
       #14

    Vincent,

    Not to beat this issue to death, just a couple things that have helped me in the past with this:

    I had one particular answer file that I just simply could not get to work. I kept trying to tweak it without success. Finally I just deleted it and created a new one from scratch. Of course, it worked the first time.

    The point is simply that following the steps in Kari's tutorial you can create the answer files in a matter of minutes which may be easier than driving yourself nuts for hours with a file that isn't working.

    Have fun!
      My Computers


  5. Posts : 8
    Windows 10 Pro 1803
    Thread Starter
       #15

    hsehestedt said:
    Vincent,

    Not to beat this issue to death, just a couple things that have helped me in the past with this:

    I had one particular answer file that I just simply could not get to work. I kept trying to tweak it without success. Finally I just deleted it and created a new one from scratch. Of course, it worked the first time.

    The point is simply that following the steps in Kari's tutorial you can create the answer files in a matter of minutes which may be easier than driving yourself nuts for hours with a file that isn't working.

    Have fun!

    Thanks @hsehestedt, I had tried using Kari's tutorials, they didn't work. I made the changes he suggested, but they didn't work either. I had switched the unattend file to never show any notifications, which finally prompted me with an error message which provided me with two errors which I had not seen previously...

    The first error was --

    "Windows could not parse or process unattend answer file [C:\autounattend.xml] for pass [windowsPE]. A required value is missing from the answer file. The error was detected at XML path [unattend\settings[pass=windowsPE]\component[name=Microsoft-Windows-Setup][processorArchitecture=amd64]\DiskConfiguration\Disk:0[Order=4]] in the answer file."


    The second error was --

    "Windows could not set a partition active on Disk 0. The target disk, partition, or volume does not support the specified operation. The error occurred while applying the unattend answer file's <DiskConfiguration> setting. Error code: 0x80300024."


    The other error which I was seeing, which I didn't get a picture of, sadly, said something to the affect of the partitioning scheme I was using was not right, and to check the Microsoft website for more information on the GPT partitioning scheme, which I found really ironic, since I had set my disk partitioning schema to match that created automatically by Windows 10 Pro, when you delete the partitioning manually until there is just 100% unallocated space and hitting new, and letting Windows create the partitions for you!

    Whatever the case was, the partition sizes were different in the last disk configuration I posted than in the first I had posted; also, the <WillWipeDisk>true</WillWipeDisk> had moved from the bottom of disk config to the top -- always thought having that flag on the bottom was odd, but it's what SIM created, so I wasn't going to argue with it's placement, but putting that flag on top seems to have also assisted with how the unattend file worked.

    I think the 1803 ADK that I am using might have a few bugs in it, especially since my OS updated to 1809 not long ago, so I am just wondering if that could have anything to do with it? Honestly, I will never know for sure, I only know that I had tried each of the suggestions which both you and Kari had recommended and went through 13 different iterations of the auto unattend file just while talking with you guys )not to mention the hundreds which I had gone through in the last year and half of researching and working in OSD for my company), just for it to come down to me using the Windows Answer File Generator from Windows Answer File Generator to grab it's disk config -- seriously, I didn't change anything on that page, I just grabbed the disk config as is, and it freaking worked...whatever...lol...told ya I felt like a tool who just cheated at a video game lol

    That being said, I am going to make note of that disk config for future reference and use.

    Thank you Kari and hsehestedt for the help.

    Vincint
      My Computer


  6. Posts : 17,661
    Windows 10 Pro
       #16

    Vincint said:
    I had tried using Kari's tutorials, they didn't work. I made the changes he suggested, but they didn't work either.
    I am sorry, but do you really think that I would post complex instructions like in my Sysprep / customizing related tutorials without being sure that the instructions are valid, that the process works as described? Do you have any idea how much testing is behind a tutorial like that?

    My suggestions? I told you to change the value MODIFY to ADD, and later that you used ACTIVE tags wrong, in wrong places. With those changes, your answer file would have worked. Both of these changes you had made to answer file are not mentioned in my tutorial, you have made those errors by yourself.


    Vincint said:
    I had switched the unattend file to never show any notifications, which finally prompted me with an error message which provided me with two errors which I had not seen previously...
    Both of errors you list clearly show that they are caused by wrong syntax, thus being completely caused by user, you in this case

    Let's look the first one:

    "Windows could not parse or process unattend answer file [C:\autounattend.xml] for pass [windowsPE]. A required value is missing from the answer file. The error was detected at XML path [unattend\settings[pass=windowsPE]\component[name=Microsoft-Windows-Setup][processorArchitecture=amd64]\DiskConfiguration\Disk:0[Order=4]] in the answer file."
    A required setting for partition 4 is missing in answer file. Following my tutorial, which tells all required settings and values for all partitions, you would have never seen that error message. Let me just assure you, those instructions for partitioning are 100% correct and valid, and tested countless times. A bit funny that no one else has complained about wrong instructions.

    OK, your second error. It could not be more clear that it is completely, profoundly, totally a user caused error:

    "Windows could not set a partition active on Disk 0. The target disk, partition, or volume does not support the specified operation. The error occurred while applying the unattend answer file's <DiskConfiguration> setting. Error code: 0x80300024."
    As I told you in post #11 in this thread, you had wrongly added ACTIVE tags to your answer file for several partitions, marking them all active. This setting should never be used on GPT disk. My instructions clearly tell to make one, only one partition active, and only on MBR disk. Never on GPT disk.


    Vincint said:
    The other error which I was seeing, which I didn't get a picture of, sadly, said something to the affect of the partitioning scheme I was using was not right, and to check the Microsoft website for more information on the GPT partitioning scheme, which I found really ironic, since I had set my disk partitioning schema to match that created automatically by Windows 10 Pro, when you delete the partitioning manually until there is just 100% unallocated space and hitting new, and letting Windows create the partitions for you!
    Unfortunately, you had not followed step by step instructions in tutorial. It had given you clear instructions in making partitioning work.


    Vincint said:
    Whatever the case was, the partition sizes were different in the last disk configuration I posted than in the first I had posted; also, the <WillWipeDisk>true</WillWipeDisk> had moved from the bottom of disk config to the top -- always thought having that flag on the bottom was odd, but it's what SIM created, so I wasn't going to argue with it's placement, but putting that flag on top seems to have also assisted with how the unattend file worked.
    No, not true. Windows Setup does not care in which order various settings passes, components and settings are given. In fact, using Windows SIM to generate answer files, then checking them in a text editor often shows that something might not be in order, when eventually everything is OK. The position of WILLWIPEDISK is totally irrelevant.

    Try it if you do not believe me. Put it back at the end of DISKCONFIGURATION and see it by yourself, it works.

    Vincint said:
    I think the 1803 ADK that I am using might have a few bugs in it, especially since my OS updated to 1809 not long ago, so I am just wondering if that could have anything to do with it?
    There are no bugs in 1803 ADK.

    I will try to remain calm, and as polite and respectful as I can be:

    I really much resent the fact that although you have clearly shown that you have not followed the instructions but instead changed things without checking if they are right, like using MODIFY instead of ADD or adding ACTIVE tags where they shouldn't be used, yet you start your post with "I had tried using Kari's tutorials, they didn't work".

    The tutorial which shows the partitioning in answer file has 115,000 views. Nobody else has complained about those instructions being wrong, shouldn't that tell you something?

    I thank you for telling future readers of this thread that my tutorials do not work.

    Kari
    Last edited by Kari; 31 May 2019 at 17:50. Reason: Fixed the worst typos
      My Computer


  7. Posts : 8
    Windows 10 Pro 1803
    Thread Starter
       #17

    Kari,

    I did not mean to offend, Sir. I had actually changed the settings to that which you had instructed, but they did not work for me either, which is why I reverted them after.

    I am very sorry if I offended, that was never my intention.

    I thank you again for all the advice and instructions which you provided.
      My Computer


  8. Posts : 1
    Windows 10
       #18

    Thank you for such a "spirited" discussion thread! I'm sure that there are others out there like me that are/were having problems with the unattended install. If you are, save yourself the time and trouble, take a hour and work through Kari's tutorial on your own machine! Don't have an hour? Then on the first page, very early on, is posted a sample xml file. Copy and paste it onto your own USB install! After many hours of frustration, I was up and running in about 3 minutes using the sample file!

    Thank you Kari for an excellent tutorial and your explanations of the various errors!

    Thank you also to hsehestedt for your insight!

    I made a few customization's to the script posting, but the bottom line is that because of your information, I was up and running in about an hour with an unattended Windows Install! :)
      My Computer


  9. Posts : 17,661
    Windows 10 Pro
       #19

    wmheid said:
    Thank you Kari for an excellent tutorial and your explanations of the various errors!
    I have never been accused to be modest, never suffered from modesty. That being said, I must tell that I really respect you joining the forums to say that, make your first post to be a "thank you" post.



    Kari
      My Computer


  10. Posts : 9
    Win10 Pro
       #20

    Hey guys, great thread and great tutorial Kari. I'm having a slight issue here that's the same as the OP. The Install doesn't do the partitioning automatically and stops me and manually makes me do it. I've got to be missing something obvious but after a few hours of trial and error I'm at a loss. Any help would be greatly appreciated.

    Code:
    <?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-CA</UILanguage>
                </SetupUILanguage>
                <InputLocale>1009:00000409</InputLocale>
                <SystemLocale>en-CA</SystemLocale>
                <UILanguage>en-CA</UILanguage>
                <UILanguageFallback>en-US</UILanguageFallback>
                <UserLocale>en-CA</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>
                    <Disk wcm:action="add">
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Extend>true</Extend>
                                <Order>4</Order>
                                <Type>Primary</Type>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Order>3</Order>
                                <Size>16</Size>
                                <Type>MSR</Type>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Order>2</Order>
                                <Size>100</Size>
                                <Type>EFI</Type>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Order>1</Order>
                                <Size>450</Size>
                                <Type>Primary</Type>
                            </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Format>NTFS</Format>
                                <Label>Windows</Label>
                                <Letter>C</Letter>
                                <Order>4</Order>
                                <PartitionID>4</PartitionID>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="add">
                                <Order>3</Order>
                                <PartitionID>3</PartitionID>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="add">
                                <Format>FAT32</Format>
                                <Label>System</Label>
                                <Order>2</Order>
                                <PartitionID>2</PartitionID>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="add">
                                <Format>NTFS</Format>
                                <Label>WinRE</Label>
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                                <TypeID>DE94BBA4-06D1-4D40-A16A-BFD50179D6AC</TypeID>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <DiskID>0</DiskID>
                        <WillWipeDisk>true</WillWipeDisk>
                    </Disk>
                </DiskConfiguration>
                <ImageInstall>
                    <OSImage>
                        <InstallTo>
                            <DiskID>0</DiskID>
                            <PartitionID>4</PartitionID>
                        </InstallTo>
                    </OSImage>
                </ImageInstall>
                <UserData>
                    <ProductKey>
                        <Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
                    </ProductKey>
                    <AcceptEula>true</AcceptEula>
                    <Organization>NetSpectrum</Organization>
                </UserData>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim:c:/users/bking/desktop/windows/sources/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    EDIT: I should also mention that I am using WDS on an AD based server not a stand alone one if that somehow makes a difference here? It's not spitting out an error at me, it's just stopping at the partitioning and making me manually do it. Server is configured for UEFI, computer is configured for UEFI boot.

    Again, any help is appreciated, thanks!

    Bryan
    Last edited by bk4twork; 09 Aug 2021 at 10:34.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:32.
Find Us




Windows 10 Forums