Silence unnecessary output
This commit is contained in:
parent
34346ebfbd
commit
e6d2a3189d
1 changed files with 1 additions and 2 deletions
|
@ -32,7 +32,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()]", $namespace);
|
$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 = `
|
$newCommand.SelectSingleNode("./ua:CommandLine", $namespace).InnerText = `
|
||||||
"powershell -Command " + `
|
"powershell -Command " + `
|
||||||
|
@ -42,7 +42,6 @@ $newCommand.SelectSingleNode("./ua:CommandLine", $namespace).InnerText = `
|
||||||
$order = [int]$newCommand.SelectSingleNode("./ua:Order", $namespace).InnerText;
|
$order = [int]$newCommand.SelectSingleNode("./ua:Order", $namespace).InnerText;
|
||||||
$newCommand.SelectSingleNode("./ua:Order", $namespace).InnerText = $order++;
|
$newCommand.SelectSingleNode("./ua:Order", $namespace).InnerText = $order++;
|
||||||
$newCommand.SelectSingleNode("./ua:Description", $namespace).InnerText = "Install PowerShell Core and git and run setup script";
|
$newCommand.SelectSingleNode("./ua:Description", $namespace).InnerText = "Install PowerShell Core and git and run setup script";
|
||||||
$installationCommand.ParentNode.AppendChild($newCommand);
|
|
||||||
|
|
||||||
if ($Global:SetupConfigPostprocessor) {
|
if ($Global:SetupConfigPostprocessor) {
|
||||||
$Global:SetupConfigPostprocessor.Invoke($unattendedConfig, $namespace);
|
$Global:SetupConfigPostprocessor.Invoke($unattendedConfig, $namespace);
|
||||||
|
|
Loading…
Reference in a new issue