if ($PendingReboot -eq $true)

pull/136/head
KnifMelti 2022-07-30 03:54:39 +02:00
parent 03be2cde02
commit f7d7bc1d3e
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ Function Update-App ($app) {
#Upgrade failed for a reason? Check for a Pending Reboot (Component Based Servicing/WindowsUpdate/CCM_ClientUtilities) #Upgrade failed for a reason? Check for a Pending Reboot (Component Based Servicing/WindowsUpdate/CCM_ClientUtilities)
$PendingReboot = Test-PendingReboot $PendingReboot = Test-PendingReboot
if ($PendingReboot) { if ($PendingReboot -eq $true) {
$FailedToUpgrade = $true $FailedToUpgrade = $true
Write-Log "A Pending Reboot prohibited $($app.Id) from upgrading..." "Red" Write-Log "A Pending Reboot prohibited $($app.Id) from upgrading..." "Red"
} }