Silence unnecessary output

This commit is contained in:
Manuel Thalmann 2024-03-11 17:46:51 +01:00
parent 34346ebfbd
commit e6d2a3189d

View file

@ -32,7 +32,7 @@ $specializeSettings.SelectSingleNode("./ua:component[@name='Microsoft-Windows-Sh
# Execute corresponding installer script after startup
$oobeSystemSettings = Get-PassSettings "oobeSystem";
$installationCommand = $oobeSystemSettings.SelectSingleNode("./ua:component/ua:FirstLogonCommands/ua:SynchronousCommand[last()]", $namespace);
$newCommand = $installationCommand.CloneNode($true);
$newCommand = $installationCommand.ParentNode.AppendChild($installationCommand.CloneNode($true));
$newCommand.SelectSingleNode("./ua:CommandLine", $namespace).InnerText = `
"powershell -Command " + `
@ -42,7 +42,6 @@ $newCommand.SelectSingleNode("./ua:CommandLine", $namespace).InnerText = `
$order = [int]$newCommand.SelectSingleNode("./ua:Order", $namespace).InnerText;
$newCommand.SelectSingleNode("./ua:Order", $namespace).InnerText = $order++;
$newCommand.SelectSingleNode("./ua:Description", $namespace).InnerText = "Install PowerShell Core and git and run setup script";
$installationCommand.ParentNode.AppendChild($newCommand);
if ($Global:SetupConfigPostprocessor) {
$Global:SetupConfigPostprocessor.Invoke($unattendedConfig, $namespace);