Skip to content

Commit f6b2dd2

Browse files
[windows] disable Windows Update Medic Service (#8431)
Related: https://github.com/actions/runner-images-internal/issues/5463
1 parent 0795b9e commit f6b2dd2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

images/win/scripts/Installers/Initialize-VM.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ Get-ScheduledTask -TaskName ServerManager | Disable-ScheduledTask
4949
Write-Host "Disable 'Allow your PC to be discoverable by other PCs' popup"
5050
New-Item -Path HKLM:\System\CurrentControlSet\Control\Network -Name NewNetworkWindowOff -Force
5151

52+
Write-Host 'Disable Windows Update Medic Service'
53+
Set-ItemProperty -Path HKLM:\System\CurrentControlSet\Services\WaaSMedicSvc -Name Start -Value 4 -Force
54+
5255
Write-Host "Disable Windows Update"
5356
Disable-WindowsUpdate
5457

@@ -73,4 +76,4 @@ Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name
7376
$driveLetter = "C"
7477
$size = Get-PartitionSupportedSize -DriveLetter $driveLetter
7578
Resize-Partition -DriveLetter $driveLetter -Size $size.SizeMax
76-
Get-Volume | Select-Object DriveLetter, SizeRemaining, Size | Sort-Object DriveLetter
79+
Get-Volume | Select-Object DriveLetter, SizeRemaining, Size | Sort-Object DriveLetter

0 commit comments

Comments
 (0)