Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sdanna/98925d5aec2e9720b54df57411d060b6 to your computer and use it in GitHub Desktop.
Save sdanna/98925d5aec2e9720b54df57411d060b6 to your computer and use it in GitHub Desktop.
Disable the lock screen (the one before the password prompt) in Windows 10 for faster login and not dropping the first password character.
# Disable the Lock Screen (the one before password prompt - to prevent dropping the first character)
If (-Not (Test-Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization)) {
New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows -Name Personalization | Out-Null
}
Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization -Name NoLockScreen -Type DWord -Value 1 -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment