@echo off
:: ============================================================
:: SetDisableTelemetry.bat
::
:: Disable Windows Telemetry.
:: Lowers the diagnostic data Windows sends to Microsoft (requires admin). Requires an elevated (Administrator) prompt.
:: ============================================================

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d "0" /f

if %ERRORLEVEL% EQU 0 (
    echo Disable Windows Telemetry applied.
) else (
    echo Failed to apply tweak. Try running this script as Administrator.
)
pause