Skip to content

Instantly share code, notes, and snippets.

@webmastir
Forked from NickCraver/Win10-DisableLockScreen.ps1
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save webmastir/c1af1d14816ea4cc1a7e to your computer and use it in GitHub Desktop.

Select an option

Save webmastir/c1af1d14816ea4cc1a7e 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