TeamCity: disable Windows Defender (#2775)

Shaves off 3 minutes out of every windows build.
This commit is contained in:
Alessandro Arzilli
2021-11-03 17:49:26 +01:00
committed by GitHub
parent cd9e6c02a6
commit 183bb8dffd

View File

@ -3,6 +3,8 @@ param (
[Parameter(Mandatory = $true)][string]$arch
)
Set-MpPreference -DisableRealtimeMonitoring $true
# Install Chocolatey
#Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))