Silence unnecessary errors

This commit is contained in:
Manuel Thalmann 2024-03-23 17:31:16 +01:00
parent a14a29ed28
commit ba5c46a884

View file

@ -43,7 +43,7 @@ $orderElement = $newCommand.SelectSingleNode("./ua:Order", $namespace);
$orderElement.InnerText = ([int]($orderElement.InnerText) + 1); $orderElement.InnerText = ([int]($orderElement.InnerText) + 1);
$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";
if (Get-Command Initialize-SetupConfig) { if (Get-Command Initialize-SetupConfig -ErrorAction SilentlyContinue) {
Initialize-SetupConfig $unattendedConfig $namespace; Initialize-SetupConfig $unattendedConfig $namespace;
} }