Change format of ooeb boot command

This commit is contained in:
Manuel Thalmann 2023-12-07 17:41:33 +01:00
parent 4afac04cbc
commit 02f585af95

View file

@ -30,7 +30,7 @@ $specializeSettings = Get-PassSettings "specialize";
$specializeSettings.SelectSingleNode("./ua:component[@name='Microsoft-Windows-Shell-Setup']/ua:ComputerName", $namespace).InnerText = "$env:WIN_COMPUTER_NAME"; $specializeSettings.SelectSingleNode("./ua:component[@name='Microsoft-Windows-Shell-Setup']/ua:ComputerName", $namespace).InnerText = "$env:WIN_COMPUTER_NAME";
$oobeSystemSettings = Get-PassSettings "oobeSystem"; $oobeSystemSettings = Get-PassSettings "oobeSystem";
$oobeSystemSettings.SelectSingleNode("./ua:component/ua:FirstLogonCommands/ua:SynchronousCommand[last()]/ua:CommandLine", $namespace).InnerText += "`npwsh '$env:SETUP_SCRIPT_NAME';"; $oobeSystemSettings.SelectSingleNode("./ua:component/ua:FirstLogonCommands/ua:SynchronousCommand[last()]/ua:CommandLine", $namespace).InnerText += "; pwsh '$env:SETUP_SCRIPT_NAME';";
if ($Global:SetupConfigPostprocessor) { if ($Global:SetupConfigPostprocessor) {
$Global:SetupConfigPostprocessor.Invoke($unattendedConfig, $namespace); $Global:SetupConfigPostprocessor.Invoke($unattendedConfig, $namespace);