@echo off
:: ============================================================
:: CheckDisableBackgroundAppsStatus.bat
::
:: Checks whether "Disable Background Apps Globally" is currently applied.
:: ============================================================

reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" /v "GlobalUserDisabled" 2>nul

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