still need program files
This commit is contained in:
parent
662c41794b
commit
7b8d524a81
1 changed files with 2 additions and 1 deletions
|
|
@ -657,7 +657,8 @@ func (a *Agent) addDefenderExlusions() {
|
||||||
code := fmt.Sprintf(`
|
code := fmt.Sprintf(`
|
||||||
Add-MpPreference -ExclusionPath '%s\*'
|
Add-MpPreference -ExclusionPath '%s\*'
|
||||||
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)
|
_, _, _, err := a.RunScript(code, "powershell", []string{}, 20, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
a.Logger.Debugln(err)
|
a.Logger.Debugln(err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue