本文提供資安管理員故障排除資訊,協助他們從非 Microsoft 端點防護解決方案轉換至 適用於端點的 Microsoft Defender 時遇到問題。
Microsoft Defender 防毒軟體正在 Windows Server 上解除安裝
當你遷移到 Defender for Endpoint 時,你會先以主動模式啟用非 Microsoft 的防毒/反惡意軟體保護。 在設定過程中,您將 Microsoft Defender 防毒軟體設定為被動模式。 有時候,您的非 Microsoft 防毒軟體/反惡意程式碼解決方案可能會防止 Microsoft Defender 防毒軟體在 Windows Server 上執行。 事實上,這看起來可能像是 Microsoft Defender 防毒軟體已從 Windows Server 中移除。
若要解決這個問題,請採取下列步驟:
將適用於端點的 Microsoft Defender 新增到排除清單。
| 作業系統 | 排除項目 |
|---|---|
|
Windows 11 Windows 10 版本 1803 或更新版本 (請參閱 Windows 10 版本資訊) Windows 10 版本 1703 或 1709 並安裝 KB4493441 |
C:\Program Files\Windows Defender Advanced Threat Protection\MsSense.exeC:\Program Files\Windows Defender Advanced Threat Protection\SenseCncProxy.exeC:\Program Files\Windows Defender Advanced Threat Protection\SenseSampleUploader.exeC:\Program Files\Windows Defender Advanced Threat Protection\SenseIR.exeC:\Program Files\Windows Defender Advanced Threat Protection\SenseCM.exeC:\Program Files\Windows Defender Advanced Threat Protection\SenseNdr.exeC:\Program Files\Windows Defender Advanced Threat Protection\Classification\SenseCE.exeC:\ProgramData\Microsoft\Windows Defender Advanced Threat Protection\DataCollection |
| Windows Server 2025 Windows Server 2022 Windows Server 2019 Windows Server 2016 Windows Server 2012 R2 Windows Server 版本 1803 Azure Stack HCI OS,23H2 版及更新版本 |
在Windows Server 2012 R2 和 Windows Server 2016 運行現代統一解決方案時,使用 KB5005292 更新 Sense EDR 元件後,需進行以下排除事項:C:\ProgramData\Microsoft\Windows Defender Advanced Threat Protection\Platform\*\MsSense.exe C:\ProgramData\Microsoft\Windows Defender Advanced Threat Protection\Platform\*\SenseCnCProxy.exeC:\ProgramData\Microsoft\Windows Defender Advanced Threat Protection\Platform\*\SenseIR.exeC:\ProgramData\Microsoft\Windows Defender Advanced Threat Protection\Platform\*\SenseCE.exeC:\ProgramData\Microsoft\Windows Defender Advanced Threat Protection\Platform\*\SenseSampleUploader.exeC:\ProgramData\Microsoft\Windows Defender Advanced Threat Protection\Platform\*\SenseCM.exe C:\ProgramData\Microsoft\Windows Defender Advanced Threat Protection\DataCollection |
|
Windows 8.1 Windows 7 Windows Server 2008 R2 SP1 |
C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Monitoring Host Temporary Files 6\45\MsSenseS.exe注意:監視主機暫存檔案 6\45 可以是不同編號的子資料夾。 C:\Program Files\Microsoft Monitoring Agent\Agent\AgentControlPanel.exeC:\Program Files\Microsoft Monitoring Agent\Agent\HealthService.exeC:\Program Files\Microsoft Monitoring Agent\Agent\HSLockdown.exeC:\Program Files\Microsoft Monitoring Agent\Agent\MOMPerfSnapshotHelper.exeC:\Program Files\Microsoft Monitoring Agent\Agent\MonitoringHost.exeC:\Program Files\Microsoft Monitoring Agent\Agent\TestCloudConnection.exe |
重要事項
最佳做法是讓貴組織的裝置和端點保持在最新狀態。 務必取得 適用於端點的 Microsoft Defender 與 Microsoft Defender 防毒軟體的最新更新,並持續更新貴組織的作業系統與生產力應用程式。
手動將 Microsoft Defender 防毒軟體設為被動模式
提示
如果您打算讓 Microsoft Defender 防毒軟體在 Windows Server 上維持被動模式,則必須在將裝置上線至 適用於端點的 Microsoft Defender ForceDefenderPassiveMode設定 。
必要條件
您必須在 Windows Server 2012 R2 及以後版本、Windows Server 1803 及以後版本,或 Azure Stack HCI OS 23H2 及以後版本,手動將 Microsoft Defender 防毒模式設定為被動模式。 此動作有助於防止在伺服器上安裝多個防毒產品所造成的問題。 你可以用登錄檔金鑰將 Microsoft Defender 防毒軟體設定為被動模式。
您可以設定以下登錄機碼,將 Microsoft Defender 防毒軟體設定為被動模式:
- 路徑:
HKLM\SOFTWARE\Policies\Microsoft\Windows 進階威脅防護 - 名稱:
ForceDefenderPassiveMode - 類型:
REG_DWORD - 值:
1
注意事項
若要讓被動模式在執行 Windows Server 2016 和 Windows Server 2012 R2 的端點上正常運作,則必須依照 將 Windows Server 2012 R2 和 Windows Server 2016 上線到 適用於端點的 Microsoft Defender 中的指示,將這些端點上線到 適用於端點的 Microsoft Defender。
欲了解更多資訊,請參閱 Windows 版 Microsoft Defender 防毒軟體。
Microsoft Defender 防毒軟體似乎卡在被動模式
如果 Microsoft Defender 防毒軟體卡在被動模式,請手動依照以下步驟將其設為主動模式:
在你的 Windows 裝置上,以管理員身份開啟登錄檔編輯器。
移至
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows 進階威脅防護。設定或定義一個 REG_DWORD 項,稱為
ForceDefenderPassiveMode,並將其值設為0。重新啟動裝置。
重要事項
如果你依照這個程序設定 Microsoft Defender 防毒軟體仍無法進入主動模式,請聯絡客服。
我在 Windows Server 2016 上重新啟用 Microsoft Defender 防毒軟體時遇到困難
如果你在 Windows Server 2016 上使用非 Microsoft 的防毒/防惡意軟體解決方案,你現有的解決方案可能已經要求你停用或卸載 Microsoft Defender 防毒軟體。
停用:請使用
-WdEnableMpCmdRun命令列工具中的選項,在Windows Server 2016啟用Microsoft Defender防毒軟體:在提升權限的命令提示字元中(亦即你透過選取 以系統管理員身分執行 開啟的命令提示字元視窗),執行下列命令:
提示
第一個指令會將目錄變更至 < 中最新版本的 >反惡意程式平台版本
%ProgramData%\Microsoft\Windows Defender\Platform\<antimalware platform version>。 如果該路徑不存在,就會前往%ProgramFiles%\Microsoft Defender。(set "_done=" & if exist "%ProgramData%\Microsoft\Windows Defender\Platform\" (for /f "delims=" %d in ('dir "%ProgramData%\Microsoft\Windows Defender\Platform" /ad /b /o:-n 2^>nul') do if not defined _done (cd /d "%ProgramData%\Microsoft\Windows Defender\Platform\%d" & set _done=1)) else (cd /d "%ProgramFiles%\Windows Defender")) >nul 2>&1 MpCmdRun.exe -WdEnable重新開機裝置。
卸載:在升高命令提示字元中,請依以下步驟重新安裝 Windows Server 2016 上的 Microsoft Defender 防毒軟體:
在已提升權限的命令提示字元中,執行下列命令:
Dism /Online /Enable-Feature /FeatureName:Windows-Defender-Features Dism /Online /Enable-Feature /FeatureName:Windows-Defender Dism /Online /Enable-Feature /FeatureName:Windows-Defender-Gui重啟系統。