禁用遥测
本页由 tools/devdocs-generator.ps1 生成,请修改源配置或函数后重新生成。目录保留历史 URL,实际分类以本页为准。
- 稳定 ID:
WPFTweaksTelemetry - 当前分类:z__高级设置 - 先了解影响
- 源配置:
config/tweaks.json - 源配置 SHA-256:
09ebd3bfcdbb4a45f67506a5c926f7f468d1da38a2a95e8accaa0d9f7e062fa9
关闭 Microsoft 遥测与部分相关数据收集;保留 Defender 自动样本提交设置。
本页描述实现,不代表推荐勾选。历史恢复仅覆盖工具实际记录的设置;配置中的 OriginalValue / OriginalType 不等于这台电脑的修改前状态。应用、文件及脚本其他改动不保证可恢复。
配置定义
{
"WPFTweaksTelemetry": {
"Content": "禁用遥测",
"Description": "关闭 Microsoft 遥测与部分相关数据收集;保留 Defender 自动样本提交设置。",
"category": "z__高级设置 - 先了解影响",
"panel": "1",
"registry": [
{
"Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\AdvertisingInfo",
"Name": "Enabled",
"Value": "0",
"Type": "DWord",
"OriginalValue": "<RemoveEntry>"
},
{
"Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Privacy",
"Name": "TailoredExperiencesWithDiagnosticDataEnabled",
"Value": "0",
"Type": "DWord",
"OriginalValue": "<RemoveEntry>"
},
{
"Path": "HKCU:\\Software\\Microsoft\\Speech_OneCore\\Settings\\OnlineSpeechPrivacy",
"Name": "HasAccepted",
"Value": "0",
"Type": "DWord",
"OriginalValue": "<RemoveEntry>"
},
{
"Path": "HKCU:\\Software\\Microsoft\\Input\\TIPC",
"Name": "Enabled",
"Value": "0",
"Type": "DWord",
"OriginalValue": "<RemoveEntry>"
},
{
"Path": "HKCU:\\Software\\Microsoft\\InputPersonalization",
"Name": "RestrictImplicitInkCollection",
"Value": "1",
"Type": "DWord",
"OriginalValue": "<RemoveEntry>"
},
{
"Path": "HKCU:\\Software\\Microsoft\\InputPersonalization",
"Name": "RestrictImplicitTextCollection",
"Value": "1",
"Type": "DWord",
"OriginalValue": "<RemoveEntry>"
},
{
"Path": "HKCU:\\Software\\Microsoft\\InputPersonalization\\TrainedDataStore",
"Name": "HarvestContacts",
"Value": "0",
"Type": "DWord",
"OriginalValue": "<RemoveEntry>"
},
{
"Path": "HKCU:\\Software\\Microsoft\\Personalization\\Settings",
"Name": "AcceptedPrivacyPolicy",
"Value": "0",
"Type": "DWord",
"OriginalValue": "<RemoveEntry>"
},
{
"Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection",
"Name": "AllowTelemetry",
"Value": "0",
"Type": "DWord",
"OriginalValue": "<RemoveEntry>"
},
{
"Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
"Name": "Start_TrackProgs",
"Value": "0",
"Type": "DWord",
"OriginalValue": "<RemoveEntry>"
},
{
"Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System",
"Name": "PublishUserActivities",
"Value": "0",
"Type": "DWord",
"OriginalValue": "<RemoveEntry>"
},
{
"Path": "HKCU:\\Software\\Microsoft\\Siuf\\Rules",
"Name": "NumberOfSIUFInPeriod",
"Value": "0",
"Type": "DWord",
"OriginalValue": "<RemoveEntry>"
}
],
"InvokeScript": [
"\r\n # Disable (Connected User Experiences and Telemetry) Service\r\n Set-Service -Name diagtrack -StartupType Disabled\r\n\r\n # Disable (Windows Error Reporting Manager) Service\r\n Set-Service -Name wermgr -StartupType Disabled\r\n\r\n # Disable PowerShell 7 telemetry\r\n [Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '1', 'Machine')\r\n\r\n Remove-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Siuf\\Rules\" -Name PeriodInNanoSeconds\r\n "
],
"UndoScript": [
"\r\n # Enable (Connected User Experiences and Telemetry) Service\r\n Set-Service -Name diagtrack -StartupType Automatic\r\n\r\n # Enable (Windows Error Reporting Manager) Service\r\n Set-Service -Name wermgr -StartupType Automatic\r\n\r\n # Enable PowerShell 7 telemetry\r\n [Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '', 'Machine')\r\n "
],
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/telemetry"
}
}