Disable unnecessary errors

This commit is contained in:
Manuel Thalmann 2023-07-15 22:32:22 +02:00
parent f2ba946217
commit 77062347ac

View file

@ -9,7 +9,7 @@ function Update-WindowsInstallation([Context] $context)
$null = Import-Module PSWindowsUpdate; $null = Import-Module PSWindowsUpdate;
Write-Host "Performing Windows Update"; Write-Host "Performing Windows Update";
$null = Install-WindowsUpdate -AcceptAll -IgnoreReboot; $null = Install-WindowsUpdate -AcceptAll -IgnoreReboot -ErrorAction "SilentlyContinue";
if ((Get-WURebootStatus -Silent)) if ((Get-WURebootStatus -Silent))
{ {