@ECHO OFF
CLS
ECHO.
ECHO Disabling tasks...
CALL :DisableTask "\Microsoft\Windows\Application Experience\AitAgent"
CALL :DisableTask "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser"
CALL :DisableTask "\Microsoft\Windows\Application Experience\ProgramDataUpdater"
CALL :DisableTask "\Microsoft\Windows\Autochk\Proxy"
CALL :DisableTask "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator"
CALL :DisableTask "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask"
CALL :DisableTask "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip"
CALL :DisableTask "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector"
CALL :DisableTask "\Microsoft\Windows\Maintenance\WinSAT"
CALL :DisableTask "\Microsoft\Windows\Media Center\ActivateWindowsSearch"
CALL :DisableTask "\Microsoft\Windows\Media Center\ConfigureInternetTimeService"
CALL :DisableTask "\Microsoft\Windows\Media Center\DispatchRecoveryTasks"
CALL :DisableTask "\Microsoft\Windows\Media Center\ehDRMInit"
CALL :DisableTask "\Microsoft\Windows\Media Center\InstallPlayReady"
CALL :DisableTask "\Microsoft\Windows\Media Center\mcupdate"
CALL :DisableTask "\Microsoft\Windows\Media Center\MediaCenterRecoveryTask"
CALL :DisableTask "\Microsoft\Windows\Media Center\ObjectStoreRecoveryTask"
CALL :DisableTask "\Microsoft\Windows\Media Center\OCURActivate"
CALL :DisableTask "\Microsoft\Windows\Media Center\OCURDiscovery"
CALL :DisableTask "\Microsoft\Windows\Media Center\PBDADiscovery"
CALL :DisableTask "\Microsoft\Windows\Media Center\PBDADiscoveryW1"
CALL :DisableTask "\Microsoft\Windows\Media Center\PBDADiscoveryW2"
CALL :DisableTask "\Microsoft\Windows\Media Center\PvrRecoveryTask"
CALL :DisableTask "\Microsoft\Windows\Media Center\PvrScheduleTask"
CALL :DisableTask "\Microsoft\Windows\Media Center\RegisterSearch"
CALL :DisableTask "\Microsoft\Windows\Media Center\ReindexSearchRoot"
CALL :DisableTask "\Microsoft\Windows\Media Center\SqlLiteRecoveryTask"
CALL :DisableTask "\Microsoft\Windows\Media Center\UpdateRecordPath"
ECHO Killing Diagnostics Tracking Service service...
SC stop DiagTrack
SC delete DiagTrack
EXIT
:DisableTask
SchTasks /Change /TN %1 /DISABLE
GOTO :EOF