This commit is contained in:
Manuel Thalmann 2024-03-11 17:45:15 +01:00
parent 48a1913401
commit 34346ebfbd

View file

@ -31,7 +31,7 @@ $specializeSettings.SelectSingleNode("./ua:component[@name='Microsoft-Windows-Sh
# Execute corresponding installer script after startup # Execute corresponding installer script after startup
$oobeSystemSettings = Get-PassSettings "oobeSystem"; $oobeSystemSettings = Get-PassSettings "oobeSystem";
$installationCommand = $oobeSystemSettings.SelectSingleNode("./ua:component/ua:FirstLogonCommands/ua:SynchronousCommand[last()]/ua:CommandLine", $namespace); $installationCommand = $oobeSystemSettings.SelectSingleNode("./ua:component/ua:FirstLogonCommands/ua:SynchronousCommand[last()]", $namespace);
$newCommand = $installationCommand.CloneNode($true); $newCommand = $installationCommand.CloneNode($true);
$newCommand.SelectSingleNode("./ua:CommandLine", $namespace).InnerText = ` $newCommand.SelectSingleNode("./ua:CommandLine", $namespace).InnerText = `