To set or change your lock screen password in Windows 10 or 11, open Settings > Accounts > Sign-in options, select Password, then Change, and follow the prompts. If you can't remember the current password, use the reset option on the sign-in screen instead.
The shortcut ms-settings:signinoptions opens the same page. Paste it into the Run dialog (Win+R) or the Start menu search box.
What "lock screen password" means
People search for "lock screen password" to mean the password prompt that appears when a PC starts, wakes up, or is locked with Win+L. Windows does not keep a separate password for that screen. It asks for the password, PIN or other credential of the account you are signing in to. So the job is always to set, change or reset your account sign-in, and the steps depend on one question: is it a Microsoft account or a local account?
The quickest check is Settings > Accounts > Your info. A Microsoft account shows an email address under your name. A local account shows "Local account". Microsoft's own instructions split along the same line, because the two recover passwords in different ways.
How to set or change the password while you are signed in
- Open Settings and go to Accounts > Sign-in options.
- Select Password, then Change.
- Enter your current password when asked, then follow the prompts to create the new one.
Microsoft's page says you must enter your current password to change it. A Microsoft account password belongs to the online account, while a local account password exists only on this PC.
If you sign in with a PIN, you can still change your Microsoft account password the same way. Microsoft's guidance for that case is identical: Settings, Accounts, Sign-in options, Password, Change. A PIN and a password are separate credentials, and the PIN stays tied to the device.
How to set a password from the command line
Administrators can set a local account's password with net user. Putting an asterisk where the password goes makes Windows prompt for it, and the characters you type are not displayed:
net user alex *
Replace alex with the account name. Typing the password directly in the command works too, but it then sits in your command history, so the prompt form is the safer habit. Microsoft's reference lists two limits: a password must meet the minimum length set by net accounts /minpwlen, and it can be at most 127 characters long.
The same command has an option, /passwordreq:{yes | no}, that controls whether an account must have a password. The default is yes. Microsoft's net user page does not describe how that option interacts with the Settings app, so leave it alone unless you manage the account on purpose.
How to reset a forgotten lock screen password
Microsoft account
You have three routes, per Microsoft's page:
- On the sign-in screen, choose I forgot my password.
- On the sign-in screen, open sign-in options, choose web sign-in, then select Forgot my password.
- From any browser on any device, open Microsoft's account password reset page.
If you are already signed in with a PIN, go to Settings > Accounts > Sign-in options > Password > Change and select Forgot my current password, then verify your account.
Local account
Local accounts recover through the security questions you chose when the account was created. From the sign-in screen:
- Select the arrow next to the password field.
- Select OK, then Reset password.
- Answer the security questions.
If you made a password reset disk earlier, choose Use a password reset disk instead and follow its instructions.
Another administrator account on the same PC
If a second administrator account exists, sign in with it and open Computer Management. Expand Local Users and Groups > Users, right-click the locked-out user, select Set Password..., then enter and confirm a new one.
When nothing works
Microsoft is blunt about this: "If you don't have an administrator account to use for changing the password, you will need to reset your Windows device." It also states that Microsoft support cannot help you retrieve or circumvent a lost or forgotten password, and support agents are not permitted to send reset links or change account details. Treat a device reset as the last resort. If the goal is to keep specific files private rather than to lock the whole PC, how to password protect a folder in Windows covers the options.
Can you remove the lock screen password?
Microsoft's change and reset pages describe setting, changing and resetting a password. They do not describe a way to leave the password empty, and this article does not claim one. What Microsoft does document is the risk. Its security policy reference says that "anyone with physical access to the device can sign in by using a user account that doesn't have a password", and that this is especially important for portable devices. It also calls blank passwords "a serious threat to computer security".
Two details from that same reference are worth knowing if you are tempted:
- The policy Accounts: Limit local account use of blank passwords to console logon only is enabled by default on client computers. It blocks remote logons, such as Remote Desktop, for local accounts that have blank passwords. It does not affect someone sitting at the keyboard.
- Because of that default, a passwordless account can also surprise you later when a remote connection that worked before is refused.
If the aim is to stop typing a long password every time, a shorter local sign-in is the lower-risk change. Windows Hello offers a PIN, and on supported hardware, face recognition or a fingerprint. Microsoft's sign-in options page lists these under the same Accounts > Sign-in options screen. They add convenience without leaving the account open to anyone who picks up the laptop.
If the prompt keeps appearing when you don't want it
Some people want to lock less often, not remove the password. Be aware that I could not confirm the exact wording or options of the "require sign-in after sleep" setting in a Microsoft support article, and the menus differ between Windows 10 and 11, so check the Sign-in options page on your own PC for a dropdown about when Windows should ask you to sign in again. On some machines it is greyed out. Community reports link that to Windows Hello being enabled or to a policy set by an organisation, but those are unconfirmed.
If your PC locks when you did not ask it to, a stuck Windows key is a frequent cause. See why your computer locks when you press L.
If it still fails
- Password option is missing in Settings: the account may be a work or school account managed by an organisation. Password changes for those go through your IT administrator or the organisation's sign-in page.
- The new password is rejected: a local policy can enforce a minimum length. Try a longer password, and check that it is within the 127-character maximum.
- The reset arrow or Reset password link never appears: Microsoft's local account page ties the reset option to security questions, so a local account with none set has nothing to show. Use another administrator account or the reset disk if you have one.
Frequently asked questions
- Where do I set a lock screen password in Windows 11?
- Open Settings, go to Accounts, then Sign-in options, select Password, and follow the prompts. You can jump straight there with the shortcut ms-settings:signinoptions. Windows 10 uses the same path.
- What if I forgot my lock screen password?
- For a Microsoft account, use the I forgot my password link on the sign-in screen, or reset it from a browser on another device. For a local account, select the arrow next to the password field, then OK, then Reset password, and answer your security questions. Microsoft support cannot retrieve or bypass a lost password.
- Is it safe to have no password on my PC?
- Microsoft's documentation says that anyone with physical access to a device can sign in with an account that has no password, and calls blank passwords a serious threat to computer security. That matters most for laptops, which are easy to lose or steal.
- Is the lock screen the same as the sign-in screen?
- In everyday speech people use the two terms interchangeably, and searches for lock screen password almost always mean the password prompt you see when you wake or lock the PC. This article uses that meaning: the password Windows asks for before it lets you back in.