Seite 1 von 1

[GELÖST] Wads – Installation von Windows 11 fehlgeschlagen

Veröffentlicht: 5. November 2024 - 9:10 Uhr
von Vercingetorix
Guten Morgen,
Wir versuchen, Windows 11 mit einer ISO-Datei in 24h2 mithilfe von wapt 2.5.5.15697 und Wads zu installieren.
Es kommt zu einer unvollständigen Installation, die mit der Fehlermeldung „Windows 11-Installation fehlgeschlagen“ endet.
Die Fehlerprotokolldatei ("setuperr.log" "setupact.log") ist beigefügt, falls Sie sie benötigen.
Wir untersuchen dies in erster Linie auf Microsoft-Seite, aber falls Sie auf dieses Problem gestoßen sind, werde ich einen Beitrag zu diesem Thema eröffnen.
Folgende Fehlertypen wurden in den Protokollen gefunden:

Code: Alle auswählen

MOUPG  CSetupManager::InitializeImageDeployAction(8932): Result = 0x80070002[gle=0x00000002]
2024-10-31 11:01:28, Error                 MOUPG  CSetupManager::DlpManagerCallback(2626): Result = 0x80070002[gle=0x00000002]
2024-10-31 11:01:28, Error                 MOUPG  SendCallbackMessage: [0x20001] -> user callback returned 0x80070002[gle=0x00000002]
2024-10-31 11:01:28, Error                 MOUPG  CDlpTask::SendCallbackMessage(2696): Result = 0x80070002[gle=0x00000002]
2024-10-31 11:01:28, Error                 MOUPG  CDlpTask::ExecuteActions(3487): Result = 0x80070002
2024-10-31 11:01:28, Error                 MOUPG  CDlpTask::Execute(1643): Result = 0x80070002
2024-10-31 11:01:28, Error                 MOUPG  CSetupManager::ExecuteTask(3116): Result = 0x80070002
2024-10-31 11:01:28, Error                 MOUPG  CSetupManager::ExecuteTask(3078): Result = 0x80070002
2024-10-31 11:01:28, Error                 MOUPG  CSetupManager::ExecuteInstallMode(1159): Result = 0x80070002
2024-10-31 11:01:28, Error                 MOUPG  CSetupManager::ExecuteDownlevelMode(609): Result = 0x80070002
2024-10-31 11:01:28, Error                 MOUPG  CSetupManager::GetDUSetupResults(8418): Result = 0x80070490
2024-10-31 11:02:32, Error                 MOUPG  CSetupManager::Execute(345): Result = 0x80070002
2024-10-31 11:02:32, Error                 MOUPG  CSetupHost::Execute(517): Result = 0x80070002
Wenn Sie irgendwelche Ideen haben, sind wir ganz Ohr.
Vielen Dank im Voraus.
Guten Tag.

Betreff: Wads – Fehlgeschlagene Installation von Windows 11

Veröffentlicht: 5. November 2024 - 12:52 Uhr
von Sfonteneau
Guten Morgen

Tatsächlich sind für Windows 11 24h2 Modifikationen erforderlich.

Die XML-Datei sollte nicht mehr mit Kommentaren, sondern direkt mit Folgendem beginnen:

Code: Alle auswählen

<?xml version="1.0" encoding="utf-8"?>
Dann muss Folgendes gelöscht werden:

Code: Alle auswählen

<FullName>superadmin</FullName>
Und auch das muss entfernt werden:

Code: Alle auswählen

<Path>install.wim</Path>
Die neue Vorlage lautet daher:

Code: Alle auswählen

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
	<!--https://schneegans.de/windows/unattend-generator/?LanguageMode=Unattended&UILanguage=en-US&Locale=en-US&Keyboard=00000409&GeoLocation=244&ProcessorArchitecture=amd64&ComputerNameMode=Random&CompactOsMode=Default&TimeZoneMode=Implicit&PartitionMode=Interactive&WindowsEditionMode=Unattended&WindowsEdition=pro&UserAccountMode=Unattended&AccountName0=Admin&AccountPassword0=password&AccountGroup0=Administrators&AccountName1=User&AccountPassword1=password&AccountGroup1=Users&AccountName2=&AccountName3=&AccountName4=&AutoLogonMode=Own&PasswordExpirationMode=Unlimited&LockoutMode=Default&HideFiles=Hidden&TaskbarSearch=Box&WifiMode=Interactive&ExpressSettings=DisableAll&KeysMode=Skip&ColorMode=Default&WallpaperMode=Default&StartTilesMode=Default&StartPinsMode=Default&WdacMode=Skip&Microsoft-Windows-UnattendedJoin=offlineServicing-->
	<settings pass="offlineServicing">
		<component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
			<!--Placeholder-->
		</component>
	</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>0409:00000409</InputLocale>
			<SystemLocale>en-US</SystemLocale>
			<UILanguage>en-US</UILanguage>
			<UserLocale>en-US</UserLocale>
		</component>
		<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
			<UserData>
				<ProductKey>
					<Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
				</ProductKey>
				<AcceptEula>true</AcceptEula>
			</UserData>
		</component>
	</settings>
	<settings pass="generalize"></settings>
	<settings pass="specialize">
		<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
			<RunSynchronous>
				<RunSynchronousCommand wcm:action="add">
					<Order>1</Order>
					<Path>net.exe accounts /maxpwage:UNLIMITED</Path>
				</RunSynchronousCommand>
				<RunSynchronousCommand wcm:action="add">
					<Order>2</Order>
					<Path>powershell.exe -NoProfile -Command "$xml = [xml]::new(); $xml.Load('C:\Windows\Panther\unattend.xml'); $sb = [scriptblock]::Create( $xml.unattend.Extensions.ExtractScript ); Invoke-Command -ScriptBlock $sb -ArgumentList $xml;"</Path>
				</RunSynchronousCommand>
				<RunSynchronousCommand wcm:action="add">
					<Order>3</Order>
					<Path>reg.exe load "HKU\DefaultUser" "C:\Users\Default\NTUSER.DAT"</Path>
				</RunSynchronousCommand>
				<RunSynchronousCommand wcm:action="add">
					<Order>4</Order>
					<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v "UnattendedSetup" /t REG_SZ /d "powershell.exe -NoProfile -Command \"Get-Content -LiteralPath 'C:\Windows\Setup\Scripts\UserOnce.ps1' -Raw | Invoke-Expression;\"" /f</Path>
				</RunSynchronousCommand>
				<RunSynchronousCommand wcm:action="add">
					<Order>5</Order>
					<Path>reg.exe unload "HKU\DefaultUser"</Path>
				</RunSynchronousCommand>
			</RunSynchronous>
		</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>0409:00000409</InputLocale>
			<SystemLocale>en-US</SystemLocale>
			<UILanguage>en-US</UILanguage>
			<UserLocale>en-US</UserLocale>
		</component>
		<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
			<UserAccounts>
				<LocalAccounts>
					<LocalAccount wcm:action="add">
						<Name>Admin</Name>
						<Group>Administrators</Group>
						<Password>
							<Value>password</Value>
							<PlainText>true</PlainText>
						</Password>
					</LocalAccount>
					<LocalAccount wcm:action="add">
						<Name>User</Name>
						<Group>Users</Group>
						<Password>
							<Value>password</Value>
							<PlainText>true</PlainText>
						</Password>
					</LocalAccount>
				</LocalAccounts>
			</UserAccounts>
			<AutoLogon>
				<Username>Admin</Username>
				<Enabled>true</Enabled>
				<LogonCount>1</LogonCount>
				<Password>
					<Value>password</Value>
					<PlainText>true</PlainText>
				</Password>
			</AutoLogon>
			<OOBE>
				<ProtectYourPC>3</ProtectYourPC>
				<HideEULAPage>true</HideEULAPage>
				<HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE>
				<HideOnlineAccountScreens>false</HideOnlineAccountScreens>
			</OOBE>
			<FirstLogonCommands>
				<SynchronousCommand wcm:action="add">
					<Order>1</Order>
					<CommandLine>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f</CommandLine>
				</SynchronousCommand>
			</FirstLogonCommands>
		</component>
	</settings>
	<Extensions xmlns="https://schneegans.de/windows/unattend-generator/">
		<ExtractScript>
param(
    [xml] $Document
);

$scriptsDir = 'C:\Windows\Setup\Scripts\';
foreach( $file in $Document.unattend.Extensions.File ) {
    $path = [System.Environment]::ExpandEnvironmentVariables(
        $file.GetAttribute( 'path' )
    );
    if( $path.StartsWith( $scriptsDir ) ) {
        mkdir -Path $scriptsDir -ErrorAction 'SilentlyContinue';
    }
    $encoding = switch( [System.IO.Path]::GetExtension( $path ) ) {
        { $_ -in '.ps1', '.xml' } { [System.Text.Encoding]::UTF8; }
        { $_ -in '.reg', '.vbs', '.js' } { [System.Text.UnicodeEncoding]::new( $false, $true ); }
        default { [System.Text.Encoding]::Default; }
    };
    [System.IO.File]::WriteAllBytes( $path, ( $encoding.GetPreamble() + $encoding.GetBytes( $file.InnerText.Trim() ) ) );
}
		</ExtractScript>
		<File path="C:\Windows\Setup\Scripts\UserOnce.ps1">
&amp; {
Set-ItemProperty -LiteralPath 'Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Search' -Name 'SearchboxTaskbarMode' -Type 'DWord' -Value 2;
} *&gt;&amp;1 &gt;&gt; "$env:TEMP\UserOnce.log";
		</File>
	</Extensions>
</unattend>

[GELÖST] Betreff: Wads – Fehlgeschlagene Installation von Windows 11

Veröffentlicht: 6. November 2024 - 10:34 Uhr
von Vercingetorix
Guten Morgen,
Tatsächlich behebt die bereitgestellte neue Konfigurationsdatei das Problem.
Nach einigen Anpassungen, da es sich beispielsweise um amerikanische Sprache und nicht um Französisch handelt.

Code: Alle auswählen

	
	<SetupUILanguage>
	<UILanguage>en-US</UILanguage>
	</SetupUILanguage>
	<InputLocale>0409:00000409</InputLocale>
	<SystemLocale>en-US</SystemLocale>
	<UILanguage>en-US</UILanguage>
	<UserLocale>en-US</UserLocale>  
Das Problem ist somit gelöst.
Vielen Dank für Ihre Hilfe.
Guten Tag.