設定為電腦分析收集瀏覽資料 的登錄值 MicrosoftEdgeDataOptIn電腦HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection
- 原則 ID
- ConfigureTelemetryForMicrosoft365Analytics
- 適用範圍
- 電腦設定、使用者設定
- 支援的作業系統
- Windows 10 (1803 版或更新版本) 上的 Microsoft Edge
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- Windows 元件 › 資料收集與預覽組建
登錄
MicrosoftEdgeDataOptIn
REG_DWORD電腦使用者…\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollectionHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection 目前的機碼
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection
- 啟用時的值
- 取決於選項值
- 元素
- 設定遙測集合
| 項目 | 儲存的值 |
|---|---|
| 不允許傳送內部網路或網際網路歷程記錄 | 0 |
| 僅允許傳送內部網路歷程記錄 | 1 |
| 僅允許傳送網際網路歷程記錄 | 2 |
| 允許傳送內部網路與網際網路歷程記錄 | 3 |
以 .reg · CMD · PowerShell 套用
電腦整部電腦的設定
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection] ; 選項 (只使用其中一個) ; 不允許傳送內部網路或網際網路歷程記錄 "MicrosoftEdgeDataOptIn"=dword:00000000 ; 僅允許傳送內部網路歷程記錄 "MicrosoftEdgeDataOptIn"=dword:00000001 ; 僅允許傳送網際網路歷程記錄 "MicrosoftEdgeDataOptIn"=dword:00000002 ; 允許傳送內部網路與網際網路歷程記錄 "MicrosoftEdgeDataOptIn"=dword:00000003
CMD
:: 選項 (只使用其中一個) :: 不允許傳送內部網路或網際網路歷程記錄 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 0 /f :: 僅允許傳送內部網路歷程記錄 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 1 /f :: 僅允許傳送網際網路歷程記錄 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 2 /f :: 允許傳送內部網路與網際網路歷程記錄 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 3 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Force | Out-Null # 選項 (只使用其中一個) # 不允許傳送內部網路或網際網路歷程記錄 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 0 -Force | Out-Null # 僅允許傳送內部網路歷程記錄 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 1 -Force | Out-Null # 僅允許傳送網際網路歷程記錄 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 2 -Force | Out-Null # 允許傳送內部網路與網際網路歷程記錄 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 3 -Force | Out-Null
使用者各帳戶的設定
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection] ; 選項 (只使用其中一個) ; 不允許傳送內部網路或網際網路歷程記錄 "MicrosoftEdgeDataOptIn"=dword:00000000 ; 僅允許傳送內部網路歷程記錄 "MicrosoftEdgeDataOptIn"=dword:00000001 ; 僅允許傳送網際網路歷程記錄 "MicrosoftEdgeDataOptIn"=dword:00000002 ; 允許傳送內部網路與網際網路歷程記錄 "MicrosoftEdgeDataOptIn"=dword:00000003
CMD
:: 選項 (只使用其中一個) :: 不允許傳送內部網路或網際網路歷程記錄 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 0 /f :: 僅允許傳送內部網路歷程記錄 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 1 /f :: 僅允許傳送網際網路歷程記錄 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 2 /f :: 允許傳送內部網路與網際網路歷程記錄 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 3 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Force | Out-Null # 選項 (只使用其中一個) # 不允許傳送內部網路或網際網路歷程記錄 New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 0 -Force | Out-Null # 僅允許傳送內部網路歷程記錄 New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 1 -Force | Out-Null # 僅允許傳送網際網路歷程記錄 New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 2 -Force | Out-Null # 允許傳送內部網路與網際網路歷程記錄 New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 3 -Force | Out-Null