@echo off
:: ============================================================
:: CheckDisableTelemetryStatus.bat
::
:: Checks whether "Disable Windows Telemetry" is currently applied.
:: ============================================================

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" 2>nul

if %ERRORLEVEL% NEQ 0 (
    echo.
    echo 'AllowTelemetry' is not set (using the Windows default^).
)
pause