diff --git a/kernel/model/elevator_windows.go b/kernel/model/elevator_windows.go index f131d8ff2df..ca3662ca5a0 100644 --- a/kernel/model/elevator_windows.go +++ b/kernel/model/elevator_windows.go @@ -90,6 +90,9 @@ func AddMicrosoftDefenderExclusion() (err error) { } } + Conf.System.MicrosoftDefenderExcluded = true + Conf.Save() + logging.LogInfof("added Windows Defender exclusion path [%s, %s]", installPath, util.WorkspaceDir) util.PushMsg(Conf.language(102), 5000) return