Create media for automated unattended install of Windows 10  

Page 49 of 99 FirstFirst ... 39474849505159 ... LastLast

  1. Posts : 4,163
    Windows 11 Pro, 22H2
       #480

    Photek said:
    To be honest I dabbed a bit into it but I didn't realize how powerful it really is, its perfect! I guess if I end up hired (I'm on internship right now) I will probably start working on that solution. Thank you very much!
    Only too glad to be able to help!
      My Computers


  2. Posts : 7
    win
       #481

    Hello kari, This tut is so well written but I still managed to find a problem with my installation. I would like some help after trying to make this tut work for myself and now, after going through all your steps
    I finally managed to make the installation. However, when i start the installation it is not automatic. I have do everything by myself. The only thing i changed is:
    ** dism /capture-image /imagefile:C:\Image\install.wim /capturedir:C:\ /ScratchDir:C:\Scratch /name:"Win10" /description:"My Custom Win10 Image" /compress:maximum /checkintegrity /verify **
    the name and i made it "Windows 10 Pro", as i was reading on another thread that there was a problem with this. Could you please help me with this ?

    I am also beginning to imagine that there is a problem with my ISO that I downloaded? can you please recommend me another ISO to try with and I will happily give it another try. :)

    Thank you.

    autounattend.xml
    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>de-DE</UILanguage>
                </SetupUILanguage>
                <InputLocale>0407:00000407</InputLocale>
                <SystemLocale>de-DE</SystemLocale>
                <UILanguage>de-DE</UILanguage>
                <UILanguageFallback>de-DE</UILanguageFallback>
                <UserLocale>de-DE</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">
                                <Order>1</Order>
                                <Size>450</Size>
                                <Type>Primary</Type>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Order>4</Order>
                                <Type>Primary</Type>
                                <Extend>true</Extend>
                            </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>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Order>4</Order>
                                <Format>NTFS</Format>
                                <Label>Windows</Label>
                                <Letter>C</Letter>
                                <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">
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                                <TypeID>DE94BBA4-06D1-4D40-A16A-BFD50179D6AC</TypeID>
                                <Label>WinRE</Label>
                                <Format>NTFS</Format>
                            </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>Sonorys</Organization>
                </UserData>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim://kekule/diso/sources/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    Last edited by bakethtech; 20 Jul 2020 at 09:09.
      My Computer


  3. Posts : 4,163
    Windows 11 Pro, 22H2
       #482

    @ bakethtech, first, welcome to TenForums!

    I know that you were asking for a response from Kari, so I hope that you do not mind my jumping in, but I've tested your autounattend.xml and it works just fine. The one exception is the first screen where language needs to be selected was displayed for me because your language settings were set to German and I am using an English copy of Windows. Other than that, the entire setup was completely automatic. I'm confident that if I changed the language settings that screen would not be shown.

    I do have a question for you:

    After you ran sysprep, you should have then booted from recovery media or Windows install media and created the image from there. After doing that, when you then booted the **reference system** normally (the system that you ran sysprep on and that you created the image on), did it complete installation automatically or did it prompt you for any information? If it did not complete installation automatically, that indicates that you likely have a problem with the unattend.xml answer file.

    Could you post a copy of that answer file here as well?
      My Computers


  4. Posts : 4,163
    Windows 11 Pro, 22H2
       #483

    One more thing: You expressed a concern about changing the name in the dism /capture-image command. That is not a problem, changing the name is perfectly fine.
      My Computers


  5. Posts : 7
    win
       #484

    Hello hsehestedt,

    Greetings of the day, I am very glad you stepped in to help me :)
    To answer your question, you are right the setup after the sysprep was not automated and I figured it out at that point that, something is wrong. You gave me a very good pointer about the language, perhaps I should download the ISO in German.
    My concern is also about downloading the right ISO and I am using the latest one, I feel something is not right. I use the WSIM to create the answer files but I am beginning to imagine that the ISO is incorrect. Could you point me in the right direction for that ?

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-International-Core" 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">
                <InputLocale>0c07:00000407</InputLocale>
                <SystemLocale>de-AT</SystemLocale>
                <UILanguage>de-AT</UILanguage>
                <UILanguageFallback>de-AT</UILanguageFallback>
                <UserLocale>de-AT</UserLocale>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="wow64" 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>
                    <HideEULAPage>true</HideEULAPage>
                    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                    <ProtectYourPC>1</ProtectYourPC>
                    <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo>
                </OOBE>
                <UserAccounts>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>cwBvAG4AbwByAHkAcwBQAGEAcwBzAHcAbwByAGQA</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <DisplayName>root</DisplayName>
                            <Group>root</Group>
                            <Name>root</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <TimeZone>W. Europe Standard Time</TimeZone>
                <RegisteredOrganization>Sonorys</RegisteredOrganization>
                <RegisteredOwner>Swetank</RegisteredOwner>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="wow64" 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>
                    <Manufacturer>Sonorys</Manufacturer>
                    <SupportURL>https.//www.sonorys.at</SupportURL>
                </OEMInformation>
                <CopyProfile>true</CopyProfile>
                <OEMName>Sonorys</OEMName>
                <RegisteredOrganization>Sonorys</RegisteredOrganization>
                <RegisteredOwner>Swetank</RegisteredOwner>
                <TimeZone>W. Europe Standard Time</TimeZone>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim://kekule/diso/sources/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
      My Computer


  6. Posts : 4,163
    Windows 11 Pro, 22H2
       #485

    EDIT: Below, I described how to download ISO image with an INSTALL.WIM rather than an INSTALL.ESD. Option Five in the same tutorial will give you the same results and is actually easier. You may want to try that rather than option three.


    The main concern with the ISO image is that it should have an INSTALL.WIM file in the \sources folder and NOT an INSTALL.ESD file. If you need to download an ISO image, follow Option Three in this tutorial. That will get you an ISO image that has an INSTALL.WIM:

    Download Windows 10 ISO File

    NOTE: If you have any difficulties with the steps in that tutorial, let me know and I will try to help.

    Also, I took a look at you unattend.xml. The only thing that I noticed was that you are not creating any users in the ADMINISTRATORS group. You need to create at least one user in the ADMINISTRATORS group.

    I see that you are trying to create a user named "root" in a group that is also named "root". I'll have to test to see if that works since there is no group called "root" by default.

    It's only about 5:45 in the morning for me now so I'm not really ready to do any testing yet, but I will test this in a few hours and let you know what I find.
      My Computers


  7. Posts : 312
    Microsoft Win 10
       #486

    Well explained.
      My Computer


  8. Posts : 4,163
    Windows 11 Pro, 22H2
       #487

    @bakethtech, I spotted another rather major issue that slipped past me before...

    In the UNATTEND.XML, you selected a couple of completely incorrect sections. Take a look at this screenshot:

    Create media for automated unattended install of Windows 10-image1.jpg

    Both of the sections that start with WOW64 should be AMD64.

    So here is what I suggest:

    Recreate the unattend.xml file exactly as you did before but with these changes:

    1) Select the sections that begin with AMD64 and not WOW64.
    2) Add your user named "root" to the "Administrators" group rather than a group named "root".

    Once you have created that new answer file, feel free to post a copy back here. I'm all set to test it and I could test it in a matter of only a few minutes if you like.
      My Computers


  9. Posts : 7
    win
       #488

    Hello Again hsehestedt,

    More I read from you, more the things get clearer to me. I am using now the Fifth step in the tutorial and Downloading the German ISO 1903. Last time, I downloaded the one with .esd and i was able to convert it to .wim without any problem. I will download this now and also create atleast one user account and also change the name of the admin account to Administrator. I will test it as well as soon as I find time and will report back to you. Thank you for the great pointers.
      My Computer


  10. Posts : 4,163
    Windows 11 Pro, 22H2
       #489

    NO - DO NOT create a user account called "Administrator"!!!

    There is already a user account named administrator. That account is used while you are in audit mode and then gets disabled when sysprep is run.

    You want to create a user name using something OTHER than "administrator" but you do want to put it in the "Administrators" group.

    Hope that helps!
      My Computers


 

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 03:53.
Find Us




Windows 10 Forums