| 1 | @echo off |
| 2 | |
| 3 | rem Required to make cloudtest use our version of taef |
| 4 | setx /M CloudTestWorkerCustomTaefExe "%1\taef\te.exe" |
| 5 | |
| 6 | mkdir %2\WexLogFileOutput |
| 7 | mklink /D %1\WexLogFileOutput %2\WexLogFileOutput |
| 8 | |
| 9 | rem These need to run before the package is installed |
| 10 | powershell -NoProfile -Command "Add-MpPreference -ExclusionPath 'C:\Program Files\WSL'" |
| 11 | powershell -NoProfile -Command "Add-MpPreference -ExclusionPath \"%appdata%\Microsoft\Windows\Start Menu\"" |
| 12 | powershell -NoProfile -Command "Add-MpPreference -ExclusionProcess @('wsl.exe', 'wslg.exe', 'wslconfig.exe', 'wslrelay.exe', 'wslhost.exe', 'msrdc.exe', 'wslservice.exe', 'msal.wsl.proxy.exe', 'te.processhost.exe')" |