Solved Windows 11 ISO Created with Sysprep Fails with autounattend.xml


rahulkmr

Well-known member
Local time
2:35 AM
Posts
6
OS
Windows 11 64bit
I created a custom Windows 11 ISO using Sysprep, but it's not working with the autounattend.xml file. During setup, I get the error: 'Windows 11 installation has failed.
But If I do not put this autounattend.xml then proper working. Also below file working good with offcial iso but not with sysprep cerated iso . Here is my xml file. Kindly guide how to fix this. i I check error on setupact.log its shows like this

"Determining whether we should run ConX or legacy setup Will launch ConX setup experience [setup.exe] UnattendSearchExplicitPath: Found unattend fF xml]; examining for applicability. Lsetup.exe UnattendSearchExplicitPath: Found usable pass [windowsPE] at [E:\autounattend.xml]. wsole wnattud f ile for pass [offlineServicing] at [E:\autounattend.xml] [setup.exe] UnattendSearchExplicitPath: Found setup.exel unattendSearchSetupSourceDrive: Unable to convert ARC path [MULTI(0)DISK(@)CDROM(0)] to NT path; 'status 0x80070002. Initializing Media class driver for audio support Initializing media class driver status: 0 Launching ConX setup experience Inspecting ConX Setup Cmdline Launching X:|Sources\SetupPrep.exe /boot"


Code:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
        <settings pass="offlineServicing"></settings>
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
            <SetupUILanguage>
                <UILanguage>en-US</UILanguage>
            </SetupUILanguage>
            <InputLocale>4009:00004009</InputLocale>
            <SystemLocale>en-IN</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>en-IN</UserLocale>
        </component>
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
            <ImageInstall>
                <OSImage>
                <InstallFrom>
                <MetaData wcm:action="add">
                <Key>/IMAGE/NAME</Key>
                <Value>Windows 11 Pro</Value>
                </MetaData>
                </InstallFrom>
                </OSImage>
            </ImageInstall>
            <UserData>
                <ProductKey>
                    <Key></Key>
                    <WillShowUI>OnError</WillShowUI>
                </ProductKey>
                <AcceptEula>true</AcceptEula>            
            </UserData>
            <UseConfigurationSet>false</UseConfigurationSet>
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>3</Order>
                    <Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>4</Order>
                    <Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" (echo:SELECT DISK=0&amp;echo:CLEAN&amp;echo:CONVERT GPT&amp;echo:CREATE PARTITION EFI SIZE=300&amp;echo:FORMAT QUICK FS=FAT32 LABEL=^"System^"&amp;echo:ASSIGN LETTER=S&amp;echo:CREATE PARTITION MSR SIZE=16&amp;echo:CREATE PARTITION PRIMARY)"</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>5</Order>
                    <Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" (echo:SHRINK MINIMUM=1000&amp;echo:FORMAT QUICK FS=NTFS LABEL=^"Windows^"&amp;echo:ASSIGN LETTER=W&amp;echo:CREATE PARTITION PRIMARY&amp;echo:FORMAT QUICK FS=NTFS LABEL=^"Recovery^"&amp;echo:ASSIGN LETTER=R)"</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>6</Order>
                    <Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" (echo:SET ID=^"de94bba4-06d1-4d40-a16a-bfd50179d6ac^"&amp;echo:GPT ATTRIBUTES=0x8000000000000001)"</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>7</Order>
                    <Path>cmd.exe /c "diskpart.exe /s "X:\diskpart.txt" &gt;&gt;"X:\diskpart.log" || ( type "X:\diskpart.log" &amp; echo diskpart encountered an error. &amp; pause &amp; exit /b 1 )"</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
    </settings>
    <settings pass="generalize"></settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
            <ComputerName>ajaypc</ComputerName>
        </component>        
    </settings>
    <settings pass="auditSystem"></settings>
    <settings pass="auditUser"></settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
            <InputLocale>4009:00004009</InputLocale>
            <SystemLocale>en-IN</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>en-IN</UserLocale>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Name>ajay</Name>
                        <Group>Administrators</Group>
                        <Password>
                            <Value></Value>
                            <PlainText>true</PlainText>
                        </Password>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <AutoLogon>
                <Username>ajay</Username>
                <Enabled>true</Enabled>
                <LogonCount>1</LogonCount>
                <Password>
                    <Value></Value>
                    <PlainText>true</PlainText>
                </Password>
            </AutoLogon>
            <OOBE>
                <ProtectYourPC>3</ProtectYourPC>
                <HideEULAPage>true</HideEULAPage>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <HideOnlineAccountScreens>false</HideOnlineAccountScreens>
            </OOBE>            
        </component>
    </settings>
</unattend>
 
Windows Build/Version
Win11Pro_25H2

My Computer My Computer

At a glance

Windows 11 64bitAMD 4650G16GB
OS
Windows 11 64bit
Computer type
PC/Desktop
Manufacturer/Model
SELF
CPU
AMD 4650G
Motherboard
ASUS 520M
Memory
16GB
I ask chatgpt and deepseek and copilot for error but only grok ai gives me solution to delete C:\Windows\Panther inside unattend.xml cache file and afterwards autounattend.xml in rootfolder working...
 

My Computer My Computer

At a glance

Windows 11 64bitAMD 4650G16GB
OS
Windows 11 64bit
Computer type
PC/Desktop
Manufacturer/Model
SELF
CPU
AMD 4650G
Motherboard
ASUS 520M
Memory
16GB
\Windows\Panther\unattend.xml will take priority over any \autounattend.xml file. If you forget to delete the Panther answer file before DISM capture, then it will always conflict with autounattend.xml.
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7

Latest Support Threads

Back
Top Bottom