diff --git a/images/win/scripts/Installers/Configure-Antivirus.ps1 b/images/win/scripts/Installers/Configure-Antivirus.ps1 index 6323fa1c7..d4aed1985 100644 --- a/images/win/scripts/Installers/Configure-Antivirus.ps1 +++ b/images/win/scripts/Installers/Configure-Antivirus.ps1 @@ -17,6 +17,7 @@ $avPreference = @( @{SubmitSamplesConsent = 2} @{ScanAvgCPULoadFactor = 5; ExclusionPath = @("D:\", "C:\")} @{DisableRealtimeMonitoring = $true} + @{ScanScheduleDay = 8} ) $avPreference += @( @@ -29,9 +30,6 @@ $avPreference | Foreach-Object { Set-MpPreference @avParams } -Write-Host "Disable Windows Defender scheduled tasks" -Get-ScheduledTask -TaskPath '\Microsoft\Windows\Windows Defender\' | Disable-ScheduledTask | Out-Null - # https://github.com/actions/runner-images/issues/4277 # https://docs.microsoft.com/en-us/microsoft-365/security/defender-endpoint/microsoft-defender-antivirus-compatibility?view=o365-worldwide $atpRegPath = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection'