🖥️ Batch (CMD)

Check "Disable Windows Spotlight on Desktop" Status (Batch)

Uses reg query to check the current value behind the "Disable Windows Spotlight on Desktop" tweak.

By WindowsScripting.com · 519 B
CheckDisableWindowsSpotlightStatus.bat
@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