在 macOS 上部署 適用於端點的 Microsoft Defender 更新

macOS 上的 適用於端點的 Microsoft Defender 透過 Microsoft AutoUpdate(MAU)接收軟體更新。 安全管理員可以使用 MAU 設定檔來控制自動更新與更新通道,或使用 msupdate 命令列工具按需啟動更新。

預設情況下,MAU 會定期檢查更新並自動下載與安裝。 部署管理偏好設定,為組織內的 macOS 裝置設定更新行為。

警告

macOS 上的 Defender for Endpoint 每個版本都會自動在六個月後自動過期。 雖然過期版本仍會獲得安全情報更新,但我們建議您安裝最新版本,以獲得所有可用的改進與增強功能。 要查詢已安裝產品版本何時過期,請使用 product_expiration 健康欄位:

mdatp health --field product_expiration

使用 msupdate

MAU 包含 msupdate 命令列工具,讓 IT 管理員能更精確地控制更新開始的時間。 完整指令語法與需求請參見使用 msupdate 更新 Microsoft 應用程式 for Mac

Defender for Endpoint 的 MAU 應用程式識別碼為 WDAV00。 請在終端機執行以下指令,下載並安裝最新的 Defender for Endpoint 更新:

cd /Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app/Contents/MacOS
./msupdate --install --apps wdav00

設定 Microsoft AutoUpdate 的偏好設定

透過您的行動裝置管理(MDM)解決方案,在裝置層級的配置設定檔中部署 MAU 偏好。 以下設定控制更新通道及本地使用者可用的更新選項。

設定頻道名稱

完整的偏好定義請參見 ChannelName

頻道決定透過 MAU 提供的更新類型與頻率。 指派給 Preview 的裝置,會比指派給 CurrentBeta 的裝置更早收到新的 Defender for Endpoint 功能。

Current 頻道包含最穩定的產品版本,且為預設版本。 若 ChannelName 缺少或無效,MAU 則使用 Current

重要事項

在 Microsoft AutoUpdate 4.29 版本(2020 年 11 月)之前,頻道名稱不同:

  • Beta 被命名為 InsiderFast
  • Preview 被命名為 External
  • Current 被命名為 Production

提示

將少量測試裝置指派給 BetaPreview,以評估新功能,並在更廣泛部署前提供早期意見回饋。

  • 領域com.microsoft.autoupdate2
  • 金鑰ChannelName
  • 資料類型:字串
  • Defender for Endpoint 支援的值
    • Beta:可取得目前開發中的最新功能。 此頻道僅用於測試與問題回報。
    • Preview:接收官方版本的預覽。
    • Current:接收官方正式發布版本,且為預設頻道。

警告

全域 ChannelName 設定會改變所有透過 MAU 更新應用程式的頻道。 若要僅變更 Defender for Endpoint 通道,請將 Current 取代為 [channel-name]BetaPreview,然後執行下列命令:

defaults write com.microsoft.autoupdate2 Applications -dict-add "/Applications/Microsoft Defender.app" " { 'Application ID' = 'WDAV00' ; 'App Domain' = 'com.microsoft.wdav' ; ChannelName = '[channel-name]' ; }"

管理員也可以透過部署範例設定檔中的 Defender 專屬設定檔來部署每個應用程式的設定檔。

控制手冊更新檢查

完整的偏好定義請參見 EnableCheckForUpdatesButton

EnableCheckForUpdatesButton偏好設定控制本地使用者是否能在 MAU 使用者介面中啟動更新檢查或選擇「全部更新」。

  • 領域com.microsoft.autoupdate2
  • 金鑰EnableCheckForUpdatesButton
  • 資料型別:布林
  • 可能的數值
    • true (預設):啟用手動更新控制。
    • false: 停用手動更新控制。

控制更新頻道選擇

完整的偏好定義請參見 DisableInsiderCheckbox

歷來的 DisableInsiderCheckbox 喜好設定可控制本機使用者是否可以在 MAU 使用者介面中選擇 BetaPreview 頻道。

  • 領域com.microsoft.autoupdate2
  • 金鑰DisableInsiderCheckbox
  • 資料型別:布林
  • 可能的數值
    • false (預設):允許使用者選擇更新頻道。
    • true: 關閉更新頻道選擇。

部署範例組態設定檔

請根據您使用的 MDM 解決方案,以及您想要設定的是全域 MAU 頻道還是 Defender 特定頻道,使用下列其中一個範例設定檔。 全球範例:

  • 將裝置指派給 Current 該頻道。
  • 自動下載並安裝更新。
  • 在 MAU 使用者介面中啟用手動更新控制。
  • 允許使用者選擇更新頻道。

警告

在正式環境中部署設定檔之前,請先檢閱並自訂這些範例設定。

JAMF Pro

Jamf Pro 是獨立的第三方產品,不包含在 Defender for Endpoint 裡,也不包含在 Defender for Endpoint 的訂閱中。 要使用 Jamf Pro,您的組織需要另外訂閱 Jamf Pro。 有關產品及訂閱資訊,請參見 Jamf Pro。 如果您的組織沒有使用 Jamf Pro,請使用本文中其他設定方法(若有的話)。

在 Jamf Pro 中,請使用下列屬性列表,在 com.microsoft.autoupdate2 偏好設定網域中設定全域 MAU 設定:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>ChannelName</key>
    <string>Current</string>
    <key>HowToCheck</key>
    <string>AutomaticDownload</string>
    <key>EnableCheckForUpdatesButton</key>
    <true/>
    <key>DisableInsiderCheckbox</key>
    <false/>
</dict>
</plist>

Intune

Microsoft Intune 是配置及分發 Defender for Endpoint 功能給裝置的推薦工具。 不過,Intune 是獨立產品,不屬於 Defender for Endpoint,也不是所有訂閱中都有。 若要使用 Intune,您需要訂用包含 Intune 的訂閱方案;或者,您也可以另外單獨購買其獨立訂閱或附加元件。 如果你沒有 Intune,也可以使用本文中提到的其他方法。 欲了解更多資訊,請參閱 Microsoft Intune 授權條款。

對於 Intune,請使用以下完整的設定檔來配置全域 MAU 設定:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1">
    <dict>
        <key>PayloadUUID</key>
        <string>B762FF60-6ACB-4A72-9E72-459D00C936F3</string>
        <key>PayloadType</key>
        <string>Configuration</string>
        <key>PayloadOrganization</key>
        <string>Microsoft</string>
        <key>PayloadIdentifier</key>
        <string>com.microsoft.autoupdate2</string>
        <key>PayloadDisplayName</key>
        <string>Microsoft AutoUpdate settings</string>
        <key>PayloadDescription</key>
        <string>Microsoft AutoUpdate configuration settings</string>
        <key>PayloadVersion</key>
        <integer>1</integer>
        <key>PayloadEnabled</key>
        <true/>
        <key>PayloadRemovalDisallowed</key>
        <true/>
        <key>PayloadScope</key>
        <string>System</string>
        <key>PayloadContent</key>
        <array>
            <dict>
            <key>PayloadUUID</key>
            <string>5A6F350A-CC2C-440B-A074-68E3F34EBAE9</string>
            <key>PayloadType</key>
            <string>com.microsoft.autoupdate2</string>
            <key>PayloadOrganization</key>
            <string>Microsoft</string>
            <key>PayloadIdentifier</key>
            <string>com.microsoft.autoupdate2</string>
            <key>PayloadDisplayName</key>
            <string>Microsoft AutoUpdate configuration settings</string>
            <key>PayloadDescription</key>
            <string/>
            <key>PayloadVersion</key>
            <integer>1</integer>
            <key>PayloadEnabled</key>
            <true/>
            <key>ChannelName</key>
            <string>Current</string>
            <key>HowToCheck</key>
            <string>AutomaticDownload</string>
            <key>EnableCheckForUpdatesButton</key>
            <true/>
            <key>DisableInsiderCheckbox</key>
            <false/>
            </dict>
        </array>
    </dict>
</plist>

用 Intune 設定一個專屬 Defender 頻道

若要將其他 Microsoft 應用程式留在其現有頻道,並將 Defender for Endpoint 指派至 Current,請使用以下設定檔,而非先前的全域設定檔。 若要設定全域頻道及 Defender 的專屬覆寫設定,請將這兩項設定一併納入同一個受控設定檔中。

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1">
    <dict>
        <key>PayloadUUID</key>
        <string>B762FF60-6ACB-4A72-9E72-459D00C936F3</string>
        <key>PayloadType</key>
        <string>Configuration</string>
        <key>PayloadOrganization</key>
        <string>Microsoft</string>
        <key>PayloadIdentifier</key>
        <string>com.microsoft.autoupdate2</string>
        <key>PayloadDisplayName</key>
        <string>Microsoft AutoUpdate settings</string>
        <key>PayloadDescription</key>
        <string>Microsoft AutoUpdate configuration settings</string>
        <key>PayloadVersion</key>
        <integer>1</integer>
        <key>PayloadEnabled</key>
        <true/>
        <key>PayloadRemovalDisallowed</key>
        <true/>
        <key>PayloadScope</key>
        <string>System</string>
        <key>PayloadContent</key>
        <array>
            <dict>
            <key>PayloadUUID</key>
            <string>5A6F350A-CC2C-440B-A074-68E3F34EBAE9</string>
            <key>PayloadType</key>
            <string>com.microsoft.autoupdate2</string>
            <key>PayloadOrganization</key>
            <string>Microsoft</string>
            <key>PayloadIdentifier</key>
            <string>com.microsoft.autoupdate2</string>
            <key>PayloadDisplayName</key>
            <string>Microsoft AutoUpdate configuration settings</string>
            <key>PayloadDescription</key>
            <string/>
            <key>PayloadVersion</key>
            <integer>1</integer>
            <key>PayloadEnabled</key>
            <true/>
            <key>Applications</key>
            <dict>
                <key>/Applications/Microsoft Defender.app</key>
                <dict>
                    <key>App Domain</key>
                    <string>com.microsoft.wdav</string>
                    <key>Application ID</key>
                    <string>WDAV00</string>
                    <key>ChannelName</key>
                    <string>Current</string>
                </dict>
            </dict>
            </dict>
        </array>
    </dict>
</plist>

請依照適用於您管理方法的既定程序部署適當的設定檔:

  • Jamf Pro:依指示 部署自訂電腦設定檔。 上傳 Jamf Pro 屬性清單,並將 偏好網域 設為 com.microsoft.autoupdate2
  • Microsoft Intune:依步驟 8:Microsoft AutoUpdate 部署所選完整設定檔為裝置通道自訂設定檔。

若要為 Defender 指派不同的通道,請在 ChannelName 字典中的 Defender 項目下新增 Applications 索引鍵。 支援的 Defender for Endpoint 值為 BetaPreviewCurrent

欲了解完整的偏好設定細節,請參閱「設定 Microsoft AutoUpdate 偏好設定」。

後續步驟