🖥️ Batch (CMD)

Disable Lock Screen (Batch)

Skips straight to the sign-in screen instead of showing the lock screen (requires admin). Requires an elevated (Administrator) prompt. Applies the tweak via reg.exe.

By WindowsScripting.com · 607 B
SetDisableLockScreen.bat
@echo off
:: ============================================================
:: SetDisableLockScreen.bat
::
:: Disable Lock Screen.
:: Skips straight to the sign-in screen instead of showing the lock screen (requires admin). Requires an elevated (Administrator) prompt.
:: ============================================================

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v "NoLockScreen" /t REG_DWORD /d "1" /f

if %ERRORLEVEL% EQU 0 (
    echo Disable Lock Screen applied.
) else (
    echo Failed to apply tweak. Try running this script as Administrator.
)
pause