Silence unnecessary errors
This commit is contained in:
parent
a14a29ed28
commit
ba5c46a884
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue