如何为软件添加 Windows Defender 排除项
如何为软件添加 Windows Defender 排除项
当 Windows Security(Windows Defender)拦截或删除代理软件时,您可以添加 Exclusion(排除项),让 Defender 跳过该软件,同时保持系统的整体安全。
建议
这是最安全的方式——仅对特定软件跳过保护,不会影响整体安全性。
方法一:通过 Windows Security 界面添加排除项
打开 Windows Security
按下 Windows + I → Privacy & Security → Windows Security → Open Windows Security。
或点击任务栏上的盾牌图标。

进入 Virus & threat protection 设置
选择 Virus & threat protection → 点击 Manage settings。

进入 Exclusions
向下滚动到 Exclusions → 点击 Add or remove exclusions。

添加排除项
点击 + Add an exclusion → 选择排除类型:
Folder(推荐):选择软件所在的文件夹
File:选择具体的
.exe文件File type:输入文件扩展名(例如:
.exe、.dll)Process:输入进程名称(例如:
TMProxyManager.exe)
选择软件文件夹
选择 Folder → 找到软件所在的文件夹(例如:TMProxyManager)→ 点击 Select Folder。

完成
排除项已成功添加。Windows Defender 将不再扫描和拦截此文件夹中的文件。

方法二:使用 PowerShell 添加排除项
适合熟悉命令行操作或需要一次添加多个排除项的用户。
以管理员身份打开 PowerShell
右键点击 开始 → 选择 Windows Terminal (Admin) 或 PowerShell (Admin)。
按文件夹添加排除项
Add-MpPreference -ExclusionPath "C:\Users\Admin\Downloads\TMProxyManager"按文件添加排除项(可选)
Add-MpPreference -ExclusionPath "C:\TMProxy\TMProxyManager.exe"按进程添加排除项(可选)
Add-MpPreference -ExclusionProcess "TMProxyManager.exe"查看当前排除项列表
Get-MpPreference | Select-Object -Property ExclusionPath, ExclusionProcess, ExclusionExtension删除排除项
Remove-MpPreference -ExclusionPath "C:\Users\Admin\Downloads\TMProxyManager"总结
| 方法 | 适用场景 | Windows 版本 |
|---|---|---|
| 方法一:Windows Security 界面 | 普通用户 | 所有版本 |
| 方法二:PowerShell | 快速设置、批量添加排除项 | 所有版本 |