From 7b8d524a8135741e243c735d21a1e96d5dff8344 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Tue, 9 Aug 2022 13:07:25 -0700 Subject: [PATCH] still need program files --- agent/agent_windows.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/agent_windows.go b/agent/agent_windows.go index e99af6b..00e489c 100644 --- a/agent/agent_windows.go +++ b/agent/agent_windows.go @@ -657,7 +657,8 @@ func (a *Agent) addDefenderExlusions() { code := fmt.Sprintf(` Add-MpPreference -ExclusionPath '%s\*' Add-MpPreference -ExclusionPath '%s\*' -`, winTempDir, winMeshDir) +Add-MpPreference -ExclusionPath '%s\*' +`, winTempDir, a.ProgramDir, winMeshDir) _, _, _, err := a.RunScript(code, "powershell", []string{}, 20, false) if err != nil { a.Logger.Debugln(err)