✅ 一键禁用系统更新 + 遥测上报(管理员PowerShell运行)

✅ 一键禁用系统更新 + 遥测上报(管理员PowerShell运行)

1777706074985

 

Write-Host "正在禁用系统更新与遥测上报..." -ForegroundColor Cyan; Stop-Service -Name wuauserv, bits, wlidsvc, diagtrack, dmwappushservice -Force -ErrorAction SilentlyContinue; Set-Service -Name wuauserv, bits, diagtrack -StartupType Disabled; New-Item -Path "HKLM:SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update" -Force | New-ItemProperty -Name AUOptions -Value 1 -PropertyType DWord -Force; New-Item -Path "HKLM:SOFTWAREPoliciesMicrosoftWindowsDataCollection" -Force | New-ItemProperty -Name AllowTelemetry -Value 0 -PropertyType DWord -Force; Set-ItemProperty -Path "HKLM:SOFTWAREMicrosoftWindowsCurrentVersionAdvertisingInfo" -Name Enabled -Value 0 -Force; New-Item -Path "HKLM:SOFTWAREPoliciesMicrosoftWindowsWindowsUpdateAU" -Force | New-ItemProperty -Name NoAutoUpdate -Value 1 -PropertyType DWord -Force; Write-Host "✅ 系统更新与遥测已禁用,不影响网站访问!" -ForegroundColor Green

以下是修复版本

Write-Host "正在禁用系统更新与遥测上报..." -ForegroundColor Cyan; Stop-Service -Name wuauserv,bits,wlidsvc,diagtrack,dmwappushservice -Force -ErrorAction SilentlyContinue; Set-Service -Name wuauserv -StartupType Disabled -ErrorAction SilentlyContinue; Set-Service -Name bits -StartupType Disabled -ErrorAction SilentlyContinue; Set-Service -Name diagtrack -StartupType Disabled -ErrorAction SilentlyContinue; New-Item -Path "HKLM:SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update" -Force | New-ItemProperty -Name AUOptions -Value 1 -PropertyType DWord -Force; New-Item -Path "HKLM:SOFTWAREPoliciesMicrosoftWindowsDataCollection" -Force | New-ItemProperty -Name AllowTelemetry -Value 0 -PropertyType DWord -Force; New-Item -Path "HKLM:SOFTWAREPoliciesMicrosoftWindowsWindowsUpdateAU" -Force | New-ItemProperty -Name NoAutoUpdate -Value 1 -PropertyType DWord -Force; Write-Host "✅ 系统更新与遥测已禁用,不影响网站访问!" -ForegroundColor Green

最后就是成功

© 版权声明
THE END
喜欢就支持一下吧
点赞135W+ 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容