Skip to content

Commit

Permalink
Windows AMI: disable indexing and anti-virus
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Oct 8, 2018
1 parent a88fb7e commit 7be1c2c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions etc/taskcluster/windows/first-boot.ps1
Expand Up @@ -2,6 +2,13 @@ Start-Transcript -Path "C:\first_boot.txt"

Get-ChildItem Env: | Out-File "C:\install_env.txt"

# DisableIndexing: Disable indexing on all disk volumes (for performance)
Get-WmiObject Win32_Volume -Filter "IndexingEnabled=$true" | Set-WmiInstance -Arguments @{IndexingEnabled=$false}

# Disable Windows Defender
# https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-antivirus/windows-defender-antivirus-on-windows-server-2016#install-or-uninstall-windows-defender-av-on-windows-server-2016
Uninstall-WindowsFeature -Name Windows-Defender

# use TLS 1.2 (see bug 1443595)
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Expand Down

0 comments on commit 7be1c2c

Please sign in to comment.