Create media for automated unattended install of Windows 10  

Page 15 of 98 FirstFirst ... 513141516172565 ... LastLast

  1. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #140

    ludwin79 said:
    now show this error:
    The error message tells quite clearly what's wrong, A required value is missing from the answer file. It also tells that the missing value is in settings for partition 4.

    In <CreatePartition> settings for each partition, size in megabytes must be told. Last partition on a disk does not require the size value if you want to use all remaining disk space for that partition, in which case you tell the system that this partition will expand to end of disk with setting <Extend>True</Extend>.

    In your case, you have not set partition 4 size nor extended it (Extend value is set to False):

    Code:
                            <CreatePartition wcm:action="add">
                                <Extend>false</Extend>
                                <Order>4</Order>
                                <Type>Primary</Type>
                            </CreatePartition>

    Kari
      My Computer


  2. Posts : 14
    Windows 10 Ent.
       #141

    and now, show me this error: Please help because you are the man my friend.
    Create media for automated unattended install of Windows 10-error.jpg

    Kari said:
    The error message tells quite clearly what's wrong, A required value is missing from the answer file. It also tells that the missing value is in settings for partition 4.

    In <CreatePartition> settings for each partition, size in megabytes must be told. Last partition on a disk does not require the size value if you want to use all remaining disk space for that partition, in which case you tell the system that this partition will expand to end of disk with setting <Extend>True</Extend>.

    In your case, you have not set partition 4 size nor extended it (Extend value is set to False):

    Code:
                            <CreatePartition wcm:action="add">
                                <Extend>false</Extend>
                                <Order>4</Order>
                                <Type>Primary</Type>
                            </CreatePartition>

    Kari
    Last edited by Brink; 05 Feb 2019 at 16:55.
      My Computer


  3. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #142

    ludwin79 said:
    and now, show me this error:
    Before replying, please remove the product key from your answer file before someone not too honest sees it. I've asked moderators to remove it from your earlier posts, now it's your turn to do it by yourself.
      My Computer


  4. Posts : 14
    Windows 10 Ent.
       #143

    Done, I remove the product key:

    Kari said:
    Before replying, please remove the product key from your answer file before someone not too honest sees it. I've asked moderators to remove it from your earlier posts, now it's your turn to do it by yourself.
    Last edited by Brink; 05 Feb 2019 at 16:46. Reason: removed code as requested
      My Computer


  5. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #144

    ludwin79 said:
    and now, show me this error:
    I told you earlier that you must either set the partition size for Windows partition (partition 4), or extend it using all storage space which is left after three first partitions:

    Code:
                            <CreatePartition wcm:action="add">
                                <Extend>true</Extend>
                                <Order>4</Order>
                                <Type>Primary</Type>
                            </CreatePartition>

    The size of the partitions is told in <CreatePartition> settings. However, for some reason you decided to add size value <Extend>True</Extend> also to <ModifyPartition> settings. That's a severe syntax error, can't work. Screenshot from your answer file:
    Create media for automated unattended install of Windows 10-image.png

    Removing the <Extend>True</Extend> from <ModifyPartition>, this answer file works.

    Short: <CreatePartition> is to create partitions and to set their size and type. <ModifyPartition> is then to set filesystem, label and drive letter.

    Your failed installs with this autounattend.xml file clearly show how important it is to really read the tutorial, follow the instructions step by step.

    Kari
      My Computer


  6. Posts : 14
    Windows 10 Ent.
       #145

    I don't understand. I check again all disk configurations (step 3.14 to 3.16). I used the same value on the chart 3.14 GPT and 3.16; but still show me the same error; for that reason I get frustrated:
    Remember: I am using Windows 10 64bit v1803.
    Create media for automated unattended install of Windows 10-error.jpg

    Kari said:
    I told you earlier that you must either set the partition size for Windows partition (partition 4), or extend it using all storage space which is left after three first partitions:

    Code:
                            <CreatePartition wcm:action="add">
                                <Extend>true</Extend>
                                <Order>4</Order>
                                <Type>Primary</Type>
                            </CreatePartition>

    The size of the partitions is told in <CreatePartition> settings. However, for some reason you decided to add size value <Extend>True</Extend> also to <ModifyPartition> settings. That's a severe syntax error, can't work. Screenshot from your answer file:
    Create media for automated unattended install of Windows 10-image.png

    Removing the <Extend>True</Extend> from <ModifyPartition>, this answer file works.

    Short: <CreatePartition> is to create partitions and to set their size and type. <ModifyPartition> is then to set filesystem, label and drive letter.

    Your failed installs with this autounattend.xml file clearly show how important it is to really read the tutorial, follow the instructions step by step.

    Kari
    Last edited by Brink; 05 Feb 2019 at 16:56.
      My Computer


  7. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #146

    ludwin79 said:
    I don't understand. I check again all disk configurations (step 3.14 to 3.16). I used the same value on the chart 3.14 GPT and 3.16; but still show me the same error; for that reason I get frustrated:
    Remember: I am using Windows 10 64bit v1803.
    Windows 10 version and edition are irrelevant; if disk and partitioning settings in an answer file work for Windows 10 Pro version 1709, they will work for Windows 10 Enterprise version 1809, and all editions and versions in between those. Windows version and edition have nothing to do with partitioning.

    I took your answer file from this post, removed the wrongly added <Extend>True</Extend> setting from <ModifyPartition> for partition 4, and changed product key to a generic key. I then added the file as autounattend.xml on root of an ISO, created a new virtual machine with 50 GB VHD, and booted from my ISO with your answer file to install Windows 10.

    Everything worked perfectly, Windows Setup being completely automatic with none whatsoever user interaction.

    In other words, if you have changed the answer file as I have instructed, it is OK and works perfectly.

    Kari
    Last edited by Kari; 21 Jan 2019 at 20:28. Reason: Some typos fixed
      My Computer


  8. Posts : 14
    Windows 10 Ent.
       #147

    Hi Kari,

    I did one more test. I created the ISO file and then create a USB boot drive with that image and works fine on a physical machine. but if I use the same image on a VM (Hyper-V) with HDD 50Gb and show me this error:
    Create media for automated unattended install of Windows 10-error.jpg
    In Conclusion: you gave me a idea, thanks for that; when you said that you took my answer for autounattend and works for you and you are right because it is works for me as well (only on a physical machine) but it is not work on my Hyper-v Machine that rare right? what do you think?
    Kari said:
    Windows 10 version and edition are irrelevant; if disk and partitioning settings in an answer file work for Windows 10 Pro version 1709, they will work for Windows 10 Enterprise version 1809, and all editions and versions in between those. Windows version and edition have nothing to do with partitioning.

    I took your answer file from this post, removed the wrongly added <Extend>True</Extend> setting from <ModifyPartition> for partition 4, and changed product key to a generic key. I then added the file as autounattend.xml on root of an ISO, created a new virtual machine with 50 GB VHD, and booted from my ISO with your answer file to install Windows 10.

    Everything worked perfectly, Windows Setup being completely automatic with none whatsoever user interaction.

    In other words, if you have changed the answer file as I have instructed, it is OK and works perfectly.

    Kari
      My Computer


  9. Posts : 14
    Windows 10 Ent.
       #148

    Last two questions:

    1- how I can add drivers package for different models on this image?
    2- how I can setup to install some app for example: HP softpaq after install the image?

    Kari said:
    Windows 10 version and edition are irrelevant; if disk and partitioning settings in an answer file work for Windows 10 Pro version 1709, they will work for Windows 10 Enterprise version 1809, and all editions and versions in between those. Windows version and edition have nothing to do with partitioning.

    I took your answer file from this post, removed the wrongly added <Extend>True</Extend> setting from <ModifyPartition> for partition 4, and changed product key to a generic key. I then added the file as autounattend.xml on root of an ISO, created a new virtual machine with 50 GB VHD, and booted from my ISO with your answer file to install Windows 10.

    Everything worked perfectly, Windows Setup being completely automatic with none whatsoever user interaction.

    In other words, if you have changed the answer file as I have instructed, it is OK and works perfectly.

    Kari
      My Computer


  10. Posts : 32
    windows 100586.164
       #149

    @ludwin79 You can add drivers for multiple computer models, windows knows itself what drivers to use for what model.

    To add drivers without having to sysprep the image. I use powershell it's very simple.
    1. Mount-windowsimage -imagepath <> -index <> -path <path to folder to where to mount the image>
    2. prepare a folder with all your drivers extracted.
    3. add-windowsdriver -path <path to mounted wim> -driver <path to folder with extracted drivers> -recurse
    4. dismount-windowsimage -path <path to mounted wim file> -save

    Sorry for the way it was written, i'm not so good in explaining things
      My Computer


 

Tutorial Categories

Create media for automated unattended install of Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  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 17:51.
Find Us




Windows 10 Forums