mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Disable Windows Defender on agent binary (#1095)
Windows (reasonably) detected our CLI as a virus due to the name being "sshd" for VS Code support. See: https://github.com/microsoft/vscode-remote-release/issues/5699 This disables monitoring for our binary prior to run, which fixes our Windows example.
This commit is contained in:
@@ -14,6 +14,7 @@ var (
|
||||
"amd64": `
|
||||
$ProgressPreference = "SilentlyContinue"
|
||||
Invoke-WebRequest -Uri ${ACCESS_URL}bin/coder-windows-amd64.exe -OutFile $env:TEMP\sshd.exe
|
||||
Set-MpPreference -DisableRealtimeMonitoring $true -ExclusionPath $env:TEMP\sshd.exe
|
||||
$env:CODER_AUTH = "${AUTH_TYPE}"
|
||||
$env:CODER_URL = "${ACCESS_URL}"
|
||||
Start-Process -FilePath $env:TEMP\sshd.exe -ArgumentList "agent" -PassThru
|
||||
|
||||
Reference in New Issue
Block a user