🖥️ Batch (CMD)
Check "Disable Cortana" Status (Batch)
Uses reg query to check the current value behind the "Disable Cortana" tweak.
CheckDisableCortanaStatus.bat
@echo off
:: ============================================================
:: CheckDisableCortanaStatus.bat
::
:: Checks whether "Disable Cortana" is currently applied.
:: ============================================================
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" 2>nul
if %ERRORLEVEL% NEQ 0 (
echo.
echo 'AllowCortana' is not set (using the Windows default^).
)
pause