🖥️ Batch (CMD)

Check "Enable Num Lock on Startup" Status (Batch)

Uses reg query to check the current value behind the "Enable Num Lock on Startup" tweak.

By WindowsScripting.com · 472 B
CheckEnableNumlockOnStartupStatus.bat
@echo off
:: ============================================================
:: CheckEnableNumlockOnStartupStatus.bat
::
:: Checks whether "Enable Num Lock on Startup" is currently applied.
:: ============================================================

reg query "HKEY_LOCAL_MACHINE\.DEFAULT\Control Panel\Keyboard" /v "InitialKeyboardIndicators" 2>nul

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