mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 15:20:11 +00:00
[Windows] Exclude KB5034439 from windows updates (#9149)
This commit is contained in:
@@ -8,10 +8,10 @@ function Install-WindowsUpdates {
|
|||||||
Write-Host "Starting wuauserv"
|
Write-Host "Starting wuauserv"
|
||||||
Start-Service -Name wuauserv -PassThru | Out-Host
|
Start-Service -Name wuauserv -PassThru | Out-Host
|
||||||
|
|
||||||
# Temporarily exclude Windows update KB5001148 since it throws an error.
|
# Temporarily exclude Windows update KB5034439 since it throws an error.
|
||||||
# The KB5001148 itself is quite old and looks like not needed (https://support.microsoft.com/en-us/topic/kb5001148-visual-studio-client-detector-utility-for-administrator-updates-ad593454-547c-43c3-b5a3-6f201ae63f03)
|
# The known issue (https://support.microsoft.com/en-au/topic/kb5034439-windows-recovery-environment-update-for-azure-stack-hci-version-22h2-and-windows-server-2022-january-9-2024-6f9d26e6-784c-4503-a3c6-0beedda443ca)
|
||||||
Write-Host "Getting list of available windows updates"
|
Write-Host "Getting list of available windows updates"
|
||||||
Get-WindowsUpdate -MicrosoftUpdate -NotKBArticleID "KB5001148" -OutVariable updates | Out-Host
|
Get-WindowsUpdate -MicrosoftUpdate -NotKBArticleID "KB5034439" -OutVariable updates | Out-Host
|
||||||
|
|
||||||
if ( -not $updates ) {
|
if ( -not $updates ) {
|
||||||
Write-Host "There are no windows updates to install"
|
Write-Host "There are no windows updates to install"
|
||||||
@@ -19,7 +19,7 @@ function Install-WindowsUpdates {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Installing windows updates"
|
Write-Host "Installing windows updates"
|
||||||
Get-WindowsUpdate -MicrosoftUpdate -NotKBArticleID "KB5001148" -AcceptAll -Install -IgnoreUserInput -IgnoreReboot | Out-Host
|
Get-WindowsUpdate -MicrosoftUpdate -NotKBArticleID "KB5034439" -AcceptAll -Install -IgnoreUserInput -IgnoreReboot | Out-Host
|
||||||
|
|
||||||
Write-Host "Validating windows updates installation"
|
Write-Host "Validating windows updates installation"
|
||||||
# Get-WUHistory doesn't support Windows Server 2022
|
# Get-WUHistory doesn't support Windows Server 2022
|
||||||
|
|||||||
Reference in New Issue
Block a user