禁用&跳过 Exchange 反恶意软件扫描

使用命令行管理程序在特定 Exchange 服务器上禁用恶意软件筛选:
若要禁用恶意软件筛选,请运行以下命令:
& $env:ExchangeInstallPath\Scripts\Disable-Antimalwarescanning.ps1

若要重新启用恶意软件筛选,请使用 Enable-Antimalwarescanning.ps1
若要验证是否禁用了恶意软件筛选,请运行以下命令并确认它是否返回值 False:
Get-TransportAgent “Malware Agent”

使用命令行管理程序在特定 Exchange 服务器上临时绕过恶意软件筛选:
若要临时绕过恶意软件筛选,请运行以下命令:
Set-MalwareFilteringServer -BypassFiltering $true
若要还原恶意软件筛选,请运行以下命令:
Set-MalwareFilteringServer -BypassFiltering $false
若要验证是否绕过了恶意软件筛选,请运行以下命令并确认它是否返回值 True:
Get-MalwareFilteringServer | Format-List BypassFiltering

对于AntiSpamAgent,可以运行以下命令来卸载代理

Uninstall-TransportAgent -Identity "Content Filter Agent"
Uninstall-TransportAgent -Identity "Sender Id Agent"
Uninstall-TransportAgent -Identity "Sender Filter Agent"
Uninstall-TransportAgent -Identity "Protocol Analysis Agent"

猜你喜欢

转载自blog.51cto.com/3032439/2296113