Disable unnecessary errors
This commit is contained in:
parent
4a42abdbe4
commit
055f1706f9
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue