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"
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 ">>"X:\diskpart.txt" (echo:SELECT DISK=0&echo:CLEAN&echo:CONVERT GPT&echo:CREATE PARTITION EFI SIZE=300&echo:FORMAT QUICK FS=FAT32 LABEL=^"System^"&echo:ASSIGN LETTER=S&echo:CREATE PARTITION MSR SIZE=16&echo:CREATE PARTITION PRIMARY)"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>5</Order>
<Path>cmd.exe /c ">>"X:\diskpart.txt" (echo:SHRINK MINIMUM=1000&echo:FORMAT QUICK FS=NTFS LABEL=^"Windows^"&echo:ASSIGN LETTER=W&echo:CREATE PARTITION PRIMARY&echo:FORMAT QUICK FS=NTFS LABEL=^"Recovery^"&echo:ASSIGN LETTER=R)"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>6</Order>
<Path>cmd.exe /c ">>"X:\diskpart.txt" (echo:SET ID=^"de94bba4-06d1-4d40-a16a-bfd50179d6ac^"&echo:GPT ATTRIBUTES=0x8000000000000001)"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>7</Order>
<Path>cmd.exe /c "diskpart.exe /s "X:\diskpart.txt" >>"X:\diskpart.log" || ( type "X:\diskpart.log" & echo diskpart encountered an error. & pause & 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
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




