Only use these steps on your own PC or with the owner's permission.
1. Microsoft account (sign-in uses an email)
On the sign-in screen, choose "I forgot my password", or on another device go to account.live.com/password/reset. Reset it, connect the PC to the internet, and sign in with the new password.
2. Local account with security questions
On Windows 10 and 11, enter a wrong password once, then choose "Reset password" and answer the security questions.
3. Another administrator account on the PC
Sign in with it, then go to Settings, then Accounts, then Other users (or Control Panel, then User Accounts) and set a new password for the locked account.
4. PIN not working?
Choose "Sign-in options" on the lock screen and use the password instead, then set a new PIN in Settings, then Accounts, then Sign-in options.
5. None of these work?
The last option is resetting or reinstalling Windows, which erases the PC. Bring it in and we can try to save the files first.