🖥️ Batch (CMD)

Check "Disable Lock Screen" Status (Batch)

Uses reg query to check the current value behind the "Disable Lock Screen" tweak.

By WindowsScripting.com · 454 B
CheckDisableLockScreenStatus.bat
@echo off
:: ============================================================
:: CheckDisableLockScreenStatus.bat
::
:: Checks whether "Disable Lock Screen" is currently applied.
:: ============================================================

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v "NoLockScreen" 2>nul

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