still need program files
This commit is contained in:
parent
662c41794b
commit
7b8d524a81
@ -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…
Reference in New Issue
Block a user