電腦分析的群組原則設定Group policy settings for Desktop Analytics

適用於:Configuration Manager (最新分支)Applies to: Configuration Manager (current branch)

本文詳細說明 Configuration Manager 和電腦分析在 Windows 中使用的本機和群組原則設定。This article details the local and group policy settings in Windows that Configuration Manager and Desktop Analytics use.

當 Configuration Manager 在電腦分析中註冊裝置後,會設定 Windows 原則以設定裝置。When Configuration Manager enrolls devices into Desktop Analytics, it sets Windows policies to configure the device. 在大多數情況下,只會使用 Configuration Manager 來進行這些設定。In most circumstances, only use Configuration Manager to configure these settings.

Windows 設定Windows settings

Configuration Manager 會在下列其中一或兩個登錄機碼中設定 Windows 原則:Configuration Manager sets Windows policies in one or both of the following registry keys:

  • 群組原則物件 (GPO):HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollectionGroup policy object (GPO): HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection

  • 本機原則喜好設定:HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollectionLocal policy preference: HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection

原則Policy 路徑Path 適用於Applies to Value
CommercialIdCommercialId 本機Local 所有 Windows 版本All Windows versions 若要讓裝置顯示在電腦分析中,請使用組織商業識別碼來進行設定。In order for a device to show up in Desktop Analytics, configure it with your organization's Commercial ID.
AllowTelemetryAllowTelemetry GPOGPO Windows 10Windows 10 針對 [基本] ([必要]) 設定為 1、針對 [增強] 設定為 2,或針對 [完整] (選擇性) 診斷資料設定為 3Set 1 for Basic (Required), 2 for Enhanced, or 3 for Full (Optional) diagnostic data. 電腦分析至少需要基本診斷資料。Desktop Analytics requires at least basic diagnostic data. Microsoft 建議針對電腦分析使用 [Optional (limited)] (選擇性 (受限)) ([Enhanced (Limited)] ([增強 (受限)])) 層級。Microsoft recommends that you use the Optional (limited) (Enhanced (Limited)) level with Desktop Analytics. 如需詳細資訊,請參閱在組織中設定 Windows 診斷資料For more information, see Configure Windows diagnostic data in your organization.
LimitEnhancedDiagnosticDataWindowsAnalyticsLimitEnhancedDiagnosticDataWindowsAnalytics GPOGPO Windows 10 1803 版與更新版本Windows 10, version 1803 and later 只有在 AllowTelemetry 設定為 2 時,才會套用此設定。This setting only applies when the AllowTelemetry setting is 2. 其會將要傳送給 Microsoft 的「增強」診斷資料事件限制為只有電腦分析所需的事件。It limits the Enhanced diagnostic data events sent to Microsoft to just those events needed by Desktop Analytics. 如需詳細資訊,請參閱透過限制增強診斷資料原則所收集的 Windows 10 診斷資料事件與欄位For more information, see Windows 10 diagnostic data events and fields collected through the limit enhanced diagnostic data policy.
AllowDeviceNameInTelemetryAllowDeviceNameInTelemetry GPOGPO Windows 10 1803 版與更新版本Windows 10, version 1803 and later 讓裝置能夠傳送裝置名稱。Enable devices to send the device name. 根據預設,裝置名稱不會傳送至 Microsoft。The device name isn't sent to Microsoft by default. 如未傳送裝置名稱,則其會在電腦分析中顯示為「不明」。If you don't send the device name, it appears in Desktop Analytics as "Unknown". 如需詳細資訊,請參閱裝置名稱For more information, see Device name.
CommercialDataOptInCommercialDataOptIn 本機Local Windows 8.1 和更舊版本Windows 8.1 and earlier 電腦分析需要的值為 1Desktop Analytics requires a value of 1. 如需詳細資訊,請參閱 Commercial Data Opt-in in Windows 7 (Windows 7 中的商業資料加入)。For more information, see Commercial Data Opt-in in Windows 7.
RequestAllAppraiserVersionsRequestAllAppraiserVersions 兩者Both Windows 8.1 和更舊版本Windows 8.1 and earlier 電腦分析要求值必須為 1,資料收集才能正常運作。Desktop Analytics requires a value of 1 for data collection to work correctly.
DisableEnterpriseAuthProxyDisableEnterpriseAuthProxy GPOGPO 所有 Windows 版本All Windows versions 如果您的環境需要使用了 Windows 整合式驗證的使用者驗證 Proxy 來存取網際網路,則電腦分析需要 0 值才能讓資料收集正常運作。If your environment requires a user-authenticated proxy with Windows Integrated Authentication for internet access, Desktop Analytics requires a value of 0 for data collection to work correctly. 如需詳細資訊,請參閱 Proxy 伺服器驗證For more information, see Proxy server authentication.

重要

在大多數情況下,只會使用 Configuration Manager 來進行這些設定。In most circumstances, only use Configuration Manager to configure these settings. 請不要將這些設定也套用到網域群組原則物件。Don't also apply these settings in domain group policy objects. 如需詳細資訊,請參閱衝突解決For more information, see Conflict resolution.

來自更新整備小幫手的設定Settings from Upgrade Readiness

Windows Analytics 也會透過更新整備小幫手指令碼來設定下列原則:Windows Analytics also set the following policies through the Upgrade Readiness script:

  • CommercialIdCommercialId
  • AllowDeviceNameInTelemetryAllowDeviceNameInTelemetry
  • CommercialDataOptInCommercialDataOptIn
  • RequestAllAppraiserVersionsRequestAllAppraiserVersions

如果您在裝置上執行更新整備小幫手上線指令碼,則這些原則設定可能仍然存在。If you ran the Upgrade Readiness onboarding script on a device, these policy settings may still exist. 請勿使用舊版指令碼。Don't use the legacy script. 在向電腦分析註冊裝置前,請先移除這些先前的原則設定。Before you enroll the device to Desktop Analytics, remove these previous policy settings.

群組原則設定Group policy settings

一般而言,請使用 Configuration Manager 集合來針對處理電腦分析設定與註冊。In general, use Configuration Manager collections to target Desktop Analytics settings and enrollment. 使用直接成員資格或查詢,以包含或排除集合中的裝置。Use direct membership or queries to include or exclude devices from the collection. 如需詳細資訊,請參閱如何建立集合For more information, see How to create collections.

Configuration Manager 會在目標集合上設定商業識別碼和診斷資料設定。Configuration Manager configures commercial ID and diagnostic data settings on your target collection. 如果您需要針對不同的裝置群組來設定不同的診斷資料設定,請使用群組原則設定來覆寫 Configuration Manager 設定。If you need to configure different diagnostic data settings for different group of devices, use group policy settings to override Configuration Manager settings. 例如,您需要為某些裝置設定 [Optional (limited)] (選擇性 (受限)) 層級,並為其他裝置設定 [必要] 層級。For example, you need to set Optional (limited) level for some devices and Required for others. 某些裝置可能會有不同的 Proxy 伺服器驗證設定。Some devices may have different proxy server authentication settings.

相關的群組原則設定位於下列路徑:[電腦設定] > [系統管理範本] > [Windows 元件] > [資料收集與預覽組建]。The relevant group policy settings are at the following path: Computer Configuration > Administrative Templates > Windows Components > Data Collection and Preview Builds.

群組原則設定只會修改下列機碼中的登錄設定:HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollectionGroup policy settings only modify registry settings in the following key: HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection

重要

當您使用群組原則設定來啟用複雜案例時,請特別注意可能會造成設定衝突的原則設定。When you use group policy settings to enable complex scenarios, pay special attention to policy settings that can cause configuration conflicts. 只有在值不存在時,Configuration Manager 才會進行 Windows 設定Configuration Manager only configures Windows settings if the value doesn't already exist. 群組原則設定的優先順序高於 Configuration Manager 設定,因此某些群組原則設定可能會導致電腦分析發生問題。Group policy settings take precedence over Configuration Manager settings, so certain group policy configurations could cause issues with Desktop Analytics.

可能與電腦分析的 Configuration Manager 設定發生衝突的群組原則設定Group policy settings that could conflict with Configuration Manager settings for Desktop Analytics

下表中的群組原則設定最有可能會與 Configuration Manager 在裝置上所設定,並向電腦分析註冊的 Windows 設定發生衝突:The group policy settings in the following table have the greatest potential to cause conflict with the Windows settings that Configuration Manager sets on devices it enrolls to Desktop Analytics:

顯示名稱Display name 登錄值Registry value 對電腦分析中所註冊裝置的影響Effect on devices enrolled in Desktop Analytics
設定商業識別碼Configure the Commercial ID CommercialIdCommercialId 如果您將此原則設定為不同的值,其將會覆寫 Configuration Manager 所設定的商業識別碼。If you set this policy to a different value, it overrides the Commercial ID set by Configuration Manager. 如果識別碼不同,所設定的裝置可能不會出現在電腦分析中。If it's not the same ID, configured devices may not appear in Desktop Analytics.
允許遙測Allow telemetry AllowTelemetryAllowTelemetry 如果您將此原則設定為不同的值,其將會覆寫您在 Configuration Manager 中為目標集合所設定的全域診斷資料層級。If you set this policy to a different value, it overrides the global diagnostic data level that you set in Configuration Manager for the target collection.
將增強的診斷資料限制為 Windows Analytics 所需的最小值Limit Enhanced diagnostic data to the minimum required by Windows Analytics LimitEnhancedDiagnosticDataWindowsAnalyticsLimitEnhancedDiagnosticDataWindowsAnalytics 此原則相依於先前的 AllowTelemetry 設定。This policy is dependent upon the prior AllowTelemetry setting. 根據您在 Configuration Manager 或群組原則中所設定的層級而定,此原則可以將裝置上的診斷資料層級變更為 [增強] 或 [增強 (有限)]。Depending upon the level you set in Configuration Manager or with group policy, this policy can change the diagnostic data level on the device to Enhanced or Enhanced (Limited). 只有當 AllowTelemetry 設定為 2 (增強) 時,才會套用此原則。This policy only applies if AllowTelemetry is set to 2 (Enhanced).
允許在 Windows 診斷資料中傳送裝置名稱Allow device name to be sent in Windows diagnostic data AllowDeviceNameInTelemetryAllowDeviceNameInTelemetry 如果您選擇在 Configuration Manager 中傳送裝置名稱,則可以透過將此原則設定為 [停用] 來加以覆寫。If you opt-in to send device names in Configuration Manager, you can override it by configuring this policy to Disabled. 當您停用此設定時,裝置名稱會在電腦分析中顯示為「未知」。When you disable this setting, device names appear as "Unknown" in Desktop Analytics. 如需詳細資訊,請參閱裝置名稱For more information, see Device name.
為已連線的使用者體驗和遙測服務設定已驗證的 Proxy 使用方式Configure Authenticated Proxy usage for the Connected User Experience and Telemetry service DisableEnterpriseAuthProxyDisableEnterpriseAuthProxy 如果您將 Configuration Manager 裝置設定為使用使用者驗證 Proxy (0),然後將此原則設定為 [停用已驗證的 Proxy 使用方式] (1),則裝置會傳送系統內容 (而非使用者內容) 中的診斷資料。If you configure Configuration Manager devices to use user-authenticated proxy (0), if you then configure this policy to Disable Authenticated Proxy usage (1), then the device sends diagnostic data in the system context instead of the user's context. 如果您未在系統內容中使用 Proxy 來設定裝置,或裝置無法向 Proxy 驗證,Windows 便無法將診斷資料傳送給電腦分析。If you don't configure the device with a proxy in system context, or the device can't authenticate to the proxy, Windows can't send diagnostic data to Desktop Analytics.

注意

舊版原則設定已連線的使用者體驗和遙測 (TelemetryProxy) 可讓 Windows 將診斷資料轉送至專用 Proxy,而不是使用使用者 (WinINET) 或裝置 (WinHTTP) Proxy。The legacy policy Configure Connected User Experiences and Telemetry (TelemetryProxy) allows Windows to forward diagnostic data to a dedicated proxy, instead of using the user (WinINET) or device (WinHTTP) proxy. 某些 Windows 元件不支援此原則。Some Windows components don't support this policy. 如果您使用此原則,則可能會導致電腦分析發生資料品質問題。If you use this policy, it may cause data quality issues in Desktop Analytics.

已停用設定的行為Behavior of disabled settings

如果您將這些群組原則設定設為 [停用],其會對系統行為產生不同的影響。If you configure these group policy settings to Disabled, it has different effects on system behavior.

  • 當您停用 CommercialId 原則時,Windows 會移除登錄值。When you disable the CommercialId policy, Windows removes the registry value. 商業識別碼的 Configuration Manager 設定 (設定於本機原則登錄路徑中) 便會套用至裝置中。The Configuration Manager setting for the commercial ID, which is set in the local policy registry path, then applies to the device.

  • 針對 Configuration Manager 在與群組原則相同的登錄位置中設定的原則,當您在群組原則中停用設定時,Windows 會移除登錄值。For policies that Configuration Manager sets in the same registry location as group policy, when you disable the setting in group policy, Windows removes the registry value. Configuration Manager 會在下一次的原則處理週期中再次進行設定,而 Windows 則會在下一次群組原則重新整理時將設定移除。Configuration Manager will set it again on its next policy processing cycle, and then Windows will remove it on the next group policy refresh. 設定一直這樣變化可能會導致電腦分析出現您不想要的行為。This constant change in configuration may cause undesired behaviors with Desktop Analytics.

    • 如果您將這些群組原則設定設為 [未設定],Windows 就只會移除該值一次,而不會繼續將其移除。If you set these group policy settings to Not configured, Windows removes the value once but doesn't continue to remove it. 此設定可讓 Configuration Manager 如預期地套用其值。This configuration lets Configuration Manager apply its values as expected.

用來自訂使用者體驗的群組原則設定Group policy settings to customize the user experience

Configuration Manager 或電腦分析不需要這些群組原則設定。These group policy settings aren't required by Configuration Manager or Desktop Analytics. 您可以在群組原則中進行設定,以設定使用者在使用 Windows 診斷資料時的體驗。You can configure them in group policy to configure your users' experience with Windows diagnostic data.

顯示名稱Display name 登錄值Registry value 對電腦分析中所註冊裝置的影響Effect on devices enrolled in Desktop Analytics
設定遙測加入變更通知Configure telemetry opt-in change notifications DisableTelemetryOptInChangeNotificationDisableTelemetryOptInChangeNotification 從 Windows 10 1803 版開始,當診斷資料層級有所變更時,Windows 就會通知使用者。Starting in Windows 10, version 1803, Windows notifies users when the diagnostic data level changes. 使用此原則即可停用通知。Use this policy to disable notifications.
設定遙測加入設定使用者介面Configure telemetry opt-in setting user interface DisableTelemetryOptInSettingsUxDisableTelemetryOptInSettingsUx 當設定診斷資料層級時,您可以設定裝置的界限。When you configure the diagnostic data level, you set the upper boundary for the device. 從 Windows 10 1803 版開始,使用者已可設定較低的層級。Starting in Windows 10, version 1803, users can set a lower level. 使用此原則可防止使用者變更診斷層級。Use this policy to prevent users from changing the diagnostic level. 如需詳細資訊,請參閱在組織中設定 Windows 診斷資料For more information, see Configure Windows diagnostic data in your organization.
停用刪除診斷資料Disable deleting diagnostic data DisableDeviceDeleteDisableDeviceDelete 從 Windows 10 1809 版開始,使用者可以從 [診斷和意見反應] 設定頁面中刪除診斷資料。Starting in Windows 10, version 1809, users can delete diagnostic data from the Diagnostic & feedback settings page. 使用此原則可防止刪除 Microsoft 從裝置收集到的診斷資料。Use this policy to prevent the deletion of diagnostic data that Microsoft collects from the device.
停用診斷資料檢視器Disable diagnostic data viewer DisableDiagnosticDataViewerDisableDiagnosticDataViewer 從 Windows 10 1809 版開始,使用者可以從 [診斷和意見反應] 設定頁面中啟用和開啟診斷資料檢視器。Starting in Windows 10, version 1809, users can enable and open the Diagnostic Data Viewer from the Diagnostic & feedback settings page. 使用此原則可在 Windows 設定中停用診斷資料檢視器,並防止其顯示 Microsoft 從裝置收集到的診斷資料。Use this policy to disable the Diagnostic Data Viewer in Windows settings, and prevent it from showing diagnostic data that Microsoft collects from the device.