@echo off setlocal echo Checking Windows Recall status... echo. REM Query the Recall optional feature dism /Online /Get-FeatureInfo /FeatureName:Recall > "%TEMP%\recall_status.txt" 2>&1 REM Check if the feature exists findstr /C:"Feature name Recall is unknown" "%TEMP%\recall_status.txt" >nul if %ERRORLEVEL%==0 ( echo Windows Recall is NOT available on this system. goto :cleanup ) REM Check the feature state findstr /C:"State : Enabled" "%TEMP%\recall_status.txt" >nul if %ERRORLEVEL%==0 ( echo Windows Recall is ENABLED. goto :cleanup ) findstr /C:"State : Disabled" "%TEMP%\recall_status.txt" >nul if %ERRORLEVEL%==0 ( echo Windows Recall is DISABLED. goto :cleanup ) echo Unable to determine Windows Recall status. type "%TEMP%\recall_status.txt" :cleanup del "%TEMP%\recall_status.txt" >nul 2>&1 endlocal pause