|
本帖最后由 银狼驰骋 于 2022-11-13 21:33 编辑
在远景论坛中“[color=rgb(255, 102, 0) !important]fch1993”系统中附带的 屏蔽遥测 代码:
@echo off
TITLE 屏蔽遥测
reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || (echo Run the script as administrator&pause&exit)
reg.exe add HKCU\Software\Microsoft\Windows\CurrentVersion\EOSNotify /f /v RemindMeAfterEndOfSupport /t REG_DWORD /d 1
reg.exe add HKCU\Software\Microsoft\Windows\CurrentVersion\EOSNotify /f /v DiscontinueEOS /t REG_DWORD /d 1
reg.exe add HKCU\Software\Microsoft\Windows\CurrentVersion\EOSNotify /f /v TimestampOverride /t REG_DWORD /d 1
reg.exe add HKCU\Software\Microsoft\Windows\CurrentVersion\EOSNotify /f /v LastRunTimestamp /t REG_QWORD /d 0x0
reg.exe delete HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener /f
reg.exe delete HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\Diagtrack-Listener /f
rem reg.exe delete HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger /f
icacls "%ProgramData%\Microsoft\Diagnosis" /grant:r *S-1-5-32-544:(OI)(CI)(IO)(F) /T /C
del /f /q "%ProgramData%\Microsoft\Diagnosis\*.rbs"
del /f /q /s "%ProgramData%\Microsoft\Diagnosis\ETLLogs\*"
sc.exe config DiagTrack start= disabled
sc.exe stop DiagTrack
schtasks.exe /Change /DISABLE /TN "Microsoft\Windows\Setup\EOSNotify"
schtasks.exe /Change /DISABLE /TN "Microsoft\Windows\Setup\EOSNotify2"
schtasks.exe /Change /DISABLE /TN "Microsoft\Windows\PerfTrack\BackgroundConfigSurveyor"
schtasks.exe /Change /DISABLE /TN "Microsoft\Windows\SetupSQMTask"
schtasks.exe /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\BthSQM"
schtasks.exe /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator"
schtasks.exe /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask"
schtasks.exe /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\TelTask"
schtasks.exe /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip"
schtasks.exe /Change /DISABLE /TN "Microsoft\Windows\Application Experience\AitAgent"
schtasks.exe /Change /DISABLE /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser"
schtasks.exe /Change /DISABLE /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater"
schtasks.exe /Delete /TN "Microsoft\Windows\Setup\EOSNotify" /F
schtasks.exe /Delete /TN "Microsoft\Windows\Setup\EOSNotify2" /F
schtasks.exe /Delete /TN "Microsoft\Windows\PerfTrack\BackgroundConfigSurveyor" /F
schtasks.exe /Delete /TN "Microsoft\Windows\SetupSQMTask" /F
schtasks.exe /Delete /TN "Microsoft\Windows\Customer Experience Improvement Program\BthSQM" /F
schtasks.exe /Delete /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /F
schtasks.exe /Delete /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /F
schtasks.exe /Delete /TN "Microsoft\Windows\Customer Experience Improvement Program\TelTask" /F
schtasks.exe /Delete /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /F
schtasks.exe /Delete /TN "Microsoft\Windows\Application Experience\AitAgent" /F
schtasks.exe /Delete /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /F
schtasks.exe /Delete /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /F
(goto) 2>nul &pause &exit /b
|
|