đź“„ JScript (WSH)
Disable Lock Screen (JScript)
Skips straight to the sign-in screen instead of showing the lock screen (requires admin). Requires an elevated (Administrator) prompt. Applies the tweak via WScript.Shell.RegWrite (JScript syntax).
SetDisableLockScreen.js
// ============================================================
// SetDisableLockScreen.js
//
// Disable Lock Screen.
// Skips straight to the sign-in screen instead of showing the lock screen (requires admin). Requires an elevated (Administrator) prompt.
//
// Usage: cscript SetDisableLockScreen.js
// ============================================================
var objShell = WScript.CreateObject("WScript.Shell");
try {
objShell.RegWrite("HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\Personalization\\NoLockScreen", 1, "REG_DWORD");
WScript.Echo("Disable Lock Screen applied.");
} catch (e) {
WScript.Echo("Failed to apply tweak: " + e.description);
}