在PowerShell 中,Add-MpPreference -ExclusionPath 是用于为 Windows Defender(现称为 Microsoft Defender)添加排除路径的命令。排除路径是指不需要进行扫描的文件夹或路径,这样可以减少 Defender 扫描的负担,提升性能,尤其是在某些不需要保护的文件夹或应用程序中。 以下是对 Add-MpPreference -ExclusionPath 的功能按...
此外,要更改或删除防病毒排除设置,您可以使用 Add-MpPreference 和 Remove-MpPreference cmdlet。例如,让...
Get-MpPreference|select DisableArchiveScanning 然后,Windows Defender 将停止实时扫描任何打开的存档文件。 此外,要更改或删除防病毒排除设置,您可以使用 Add-MpPreference 和 Remove-MpPreference cmdlet。例如,让我们将一些文件夹路径添加到防病毒排除项中: Add-MpPreference -ExclusionPath C:Video, C:install 显示Window...
FunctionAdd-PrinterPort1.1PrintManagement FunctionAdd-StorageFaultDomain2.0.0.0Storage FunctionAdd-TargetPortToMaskingSet2.0.0.0Storage FunctionAdd-VirtualDiskToMaskingSet2.0.0.0Storage FunctionAdd-VpnConnection2.0.0.0VpnClient FunctionAdd-VpnConnectionRoute2.0.0.0VpnClient FunctionAdd-VpnConnectionTriggerApplication2...
Function Add-BitLockerKeyProtector BitLocker Function Add-DnsClientNrptRule DnsClient Function Add-DtcClusterTMMapping MsDtc Function Add-InitiatorIdToMaskingSet Storage Function Add-MpPreference Defender Function Add-NetEventNetworkAdapter NetEventPacketCapture ...
Server10# 当前账户必须有上述服务器的本地管理员权限Invoke-Command-Session$S-ScriptBlock{Add-MpPreference-ExclusionPath"D:\Program Files\Autonomy"Add-MpPreference-ExclusionPath"E:\Program Files\Autonomy"Add-MpPreference-ExclusionPath"F:\Program Files\Autonomy"Add-MpPreference-ExclusionPath"G:\Program Files...
通过减少攻击面来阻止已知的恶意攻击途径 Add-MpPreference -AttackSurfaceReductionRules\_Ids 56a863a9-875e-4185-98a7-b882c64b5ce5 -AttackSurfaceReductionRules\_Actions Enabled Add-MpPreference -AttackSurfaceReductionRules\_Ids 7674ba52-37eb-4a4f-a9a1-f0f9a1619a2c -AttackSurfaceReductionRules\_Actions...
Add-MpPreference-ExclusionPathc:\排除目录 删除排除项 使用PowerShell 移除排除项 powershell 1 Remove-MpPreference-ExclusionPathc:\排除目录 使用PowerShell 运行扫描 使用专用命令行工具 mpcmdrun.exe 执行防病毒扫描 powershell 1 2 3 4 &'C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.23050.9-0\MpCmd...
Set-MpPreference -DisableIOAVProtection $true 或者,可以为shadow内容添加一个排除目录 Add-MpPreference -ExclusionPath "C:\Users\Public\Downloads\SuperLegitDownloadDirectory" 或者,你可以让 Defender 保持启用状态并从中删除所有病毒签名。 "C:\Program Files\Windows Defender\MpCmdRun.exe" -RemoveDefinitions -Al...
Function Add-DnsClientNrptRule 1.0.0.0 DnsClient Function Add-DtcClusterTMMapping 1.0.0.0 MsDtc Function Add-EtwTraceProvider 1.0.0.0 EventTracingManagement Function Add-InitiatorIdToMaskingSet 2.0.0.0 Storage Function Add-MpPreference 1.0 ConfigDefender ...