mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
Attempt to mitigate Windows Defender detections by making provision-image.ps1 not a powershell script (#11978)
* Remove C:\ exclusion since we do all the interesting work on D: now. * Rename provision-image.ps1 to remove executable extension.
This commit is contained in:
parent
6185aa7650
commit
6a8d2cb4a1
@ -202,7 +202,7 @@ Invoke-AzVMRunCommand `
|
||||
-ResourceGroupName $ResourceGroupName `
|
||||
-VMName $ProtoVMName `
|
||||
-CommandId 'RunPowerShellScript' `
|
||||
-ScriptPath "$PSScriptRoot\provision-image.ps1" `
|
||||
-ScriptPath "$PSScriptRoot\provision-image.txt" `
|
||||
-Parameter @{AdminUserPassword = $AdminPW; `
|
||||
StorageAccountName=$StorageAccountName; `
|
||||
StorageAccountKey=$StorageAccountKey;}
|
||||
|
@ -438,7 +438,6 @@ if ($null -eq $av) {
|
||||
Write-Host 'AntiVirus not installed, skipping exclusions.'
|
||||
} else {
|
||||
Write-Host 'Configuring AntiVirus exclusions...'
|
||||
Add-MPPreference -ExclusionPath C:\
|
||||
Add-MPPreference -ExclusionPath D:\
|
||||
Add-MPPreference -ExclusionProcess ninja.exe
|
||||
Add-MPPreference -ExclusionProcess clang-cl.exe
|
Loading…
x
Reference in New Issue
Block a user