病毒和威胁防护->管理设置->添加或删除排除项
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths] “C:\“=dword:00000000
### 临时调整防护策略(操作后需恢复)
```powershell
Set-MpPreference -DisableRealtimeMonitoring $true -Force
Add-MpPreference -ExclusionPath "C:\SecLab\"