mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +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 `
|
-ResourceGroupName $ResourceGroupName `
|
||||||
-VMName $ProtoVMName `
|
-VMName $ProtoVMName `
|
||||||
-CommandId 'RunPowerShellScript' `
|
-CommandId 'RunPowerShellScript' `
|
||||||
-ScriptPath "$PSScriptRoot\provision-image.ps1" `
|
-ScriptPath "$PSScriptRoot\provision-image.txt" `
|
||||||
-Parameter @{AdminUserPassword = $AdminPW; `
|
-Parameter @{AdminUserPassword = $AdminPW; `
|
||||||
StorageAccountName=$StorageAccountName; `
|
StorageAccountName=$StorageAccountName; `
|
||||||
StorageAccountKey=$StorageAccountKey;}
|
StorageAccountKey=$StorageAccountKey;}
|
||||||
|
@ -438,7 +438,6 @@ if ($null -eq $av) {
|
|||||||
Write-Host 'AntiVirus not installed, skipping exclusions.'
|
Write-Host 'AntiVirus not installed, skipping exclusions.'
|
||||||
} else {
|
} else {
|
||||||
Write-Host 'Configuring AntiVirus exclusions...'
|
Write-Host 'Configuring AntiVirus exclusions...'
|
||||||
Add-MPPreference -ExclusionPath C:\
|
|
||||||
Add-MPPreference -ExclusionPath D:\
|
Add-MPPreference -ExclusionPath D:\
|
||||||
Add-MPPreference -ExclusionProcess ninja.exe
|
Add-MPPreference -ExclusionProcess ninja.exe
|
||||||
Add-MPPreference -ExclusionProcess clang-cl.exe
|
Add-MPPreference -ExclusionProcess clang-cl.exe
|
Loading…
x
Reference in New Issue
Block a user