mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-07 02:27:28 +08:00
[windows] disable Windows Update Medic Service (#8431)
Related: https://github.com/actions/runner-images-internal/issues/5463
This commit is contained in:
@@ -49,6 +49,9 @@ Get-ScheduledTask -TaskName ServerManager | Disable-ScheduledTask
|
||||
Write-Host "Disable 'Allow your PC to be discoverable by other PCs' popup"
|
||||
New-Item -Path HKLM:\System\CurrentControlSet\Control\Network -Name NewNetworkWindowOff -Force
|
||||
|
||||
Write-Host 'Disable Windows Update Medic Service'
|
||||
Set-ItemProperty -Path HKLM:\System\CurrentControlSet\Services\WaaSMedicSvc -Name Start -Value 4 -Force
|
||||
|
||||
Write-Host "Disable Windows Update"
|
||||
Disable-WindowsUpdate
|
||||
|
||||
|
||||
Reference in New Issue
Block a user