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

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:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" -Force | New-ItemProperty -Name AUOptions -Value 1 -PropertyType DWord -Force; New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Force | New-ItemProperty -Name AllowTelemetry -Value 0 -PropertyType DWord -Force; Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" -Name Enabled -Value 0 -Force; New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -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:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" -Force | New-ItemProperty -Name AUOptions -Value 1 -PropertyType DWord -Force; New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Force | New-ItemProperty -Name AllowTelemetry -Value 0 -PropertyType DWord -Force; New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force | New-ItemProperty -Name NoAutoUpdate -Value 1 -PropertyType DWord -Force; Write-Host "✅ 系统更新与遥测已禁用,不影响网站访问!" -ForegroundColor Green
最后就是成功
© 版权声明
THE END
暂无评论内容