Create media for automated unattended install of Windows 10  

Page 15 of 19 FirstFirst ... 51314151617 ... LastLast
  1. Kari's Avatar
    Posts : 15,622
    Windows 10 Pro
    Thread Starter
       #140

    ludwin79 said: View Post
    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 ComputerSystem Spec

  2.    #141

    and now, show me this error: Please help because you are the man my friend.
    Name:  error.jpg
Views: 88
Size:  58.2 KB

    Kari said: View Post
    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 ComputerSystem Spec

  3. Kari's Avatar
    Posts : 15,622
    Windows 10 Pro
    Thread Starter
       #142

    ludwin79 said: View Post
    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 ComputerSystem Spec

  4.    #143

    Done, I remove the product key:

    Kari said: View Post
    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 ComputerSystem Spec

  5. Kari's Avatar
    Posts : 15,622
    Windows 10 Pro
    Thread Starter
       #144

    ludwin79 said: View Post
    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:
    Click image for larger version. 

Name:	image.png 
Views:	6 
Size:	484.1 KB 
ID:	221711

    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 ComputerSystem Spec

  6.    #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.
    Name:  error.jpg
Views: 82
Size:  58.2 KB

    Kari said: View Post
    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:
    Click image for larger version. 

Name:	image.png 
Views:	6 
Size:	484.1 KB 
ID:	221711

    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 ComputerSystem Spec

  7. Kari's Avatar
    Posts : 15,622
    Windows 10 Pro
    Thread Starter
       #146

    ludwin79 said: View Post
    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 ComputerSystem Spec

  8.    #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:
    Name:  error.jpg
Views: 73
Size:  58.2 KB
    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: View Post
    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 ComputerSystem Spec

  9.    #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: View Post
    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 ComputerSystem Spec

  10.    #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 ComputerSystem Spec


 
Page 15 of 19 FirstFirst ... 51314151617 ... LastLast

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 Threads
The way Windows operating system is delivered and installed has changed quite a lot from days when Windows 3.0 was delivered on 6 floppy disks. To install, you booted PC from floppy 1, which in its turn asked you to eject it and insert floppy 2 to...
yesterday, 4 august 0400 south african time , my computer must have loaded trusteer rapport , made a system restore point before running it and my system time zone was set to cuiaba, brazil . i tried to go back to a pre trusteer rapport system...
Is an unattended upgrade possible? in Installation and Upgrade
Hi, We've got hundreds of computers running Win 7 Pro that we'd like to upgrade to Windows 10. Is there a way of running the setup with an answer file? Anywhere I can get example answer files from? I don't really care what the settings...
I have been creating generalized images for deployment in an enterprise scenario. In order to do so, I've installed Windows 10, booted into audit mode from the Welcome Screen, then customized Windows. After this, I can run sysprep with an unattend...
I had a run on the preview 10240 by unattended installation. what I wanted to see is if I could create a golden image on one very old PC (HP Elitebook 6930p), sysprep it and afterwards apply that image by autoupdating the drivers to my Dell...
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 19:04.
Find Us