@echo off
:: ============================================================
:: CheckDisableWindowsSpotlightStatus.bat
::
:: Checks whether "Disable Windows Spotlight on Desktop" is currently applied.
:: ============================================================

reg query "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableSpotlightCollectionOnDesktop" 2>nul

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