mirror of
https://github.com/actions/runner-images.git
synced 2026-01-08 11:30:49 +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"
|
Write-Host "Disable 'Allow your PC to be discoverable by other PCs' popup"
|
||||||
New-Item -Path HKLM:\System\CurrentControlSet\Control\Network -Name NewNetworkWindowOff -Force
|
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"
|
Write-Host "Disable Windows Update"
|
||||||
Disable-WindowsUpdate
|
Disable-WindowsUpdate
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user