Fix windows update automation
This commit is contained in:
parent
22c55f2729
commit
b4d6b651b6
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ function Invoke-Upgrade([Context] $context)
|
|||
Write-Information "Performing Windows Update";
|
||||
$null = Install-WindowsUpdate -AcceptAll -IgnoreReboot;
|
||||
|
||||
if ((Get-WURebootStatus).RebootRequired)
|
||||
if ((Get-WURebootStatus -Silent))
|
||||
{
|
||||
Write-Debug "A Reboot is Required!";
|
||||
Write-Debug "Windows will reboot now and the installation will be continued automatically.";
|
||||
|
|
Loading…
Reference in a new issue