A.If you forgot your Microsoft account password
If you forgot the password you use to sign in to services like Outlook.com, Skype, OneDrive, and Xbox Live you might need to reset it.
First, check to make sure that Caps Lock isn't on, because passwords are case-sensitive. If you're sure you're using the right password but still can't sign in, your account might be compromised.
To reset your password:
Go to the Reset your password page
Choose the reason you need your password reset, then click Next.
Enter the Microsoft account email address you're trying to recover.
Enter the characters you see on the screen, then click Next.
If you have security info on your account, we'll send a one-time code to the alternate phone number or email address you gave us. After you enter the code on the next screen, you'll be able to make a new password. Learn more about security info and security codes
B.Windows 10 PC
On the sign-in screen, type your Microsoft account name if it's not displayed. If there are multiple accounts on the PC, choose the one to reset.
Select I forgot my password below the password text box.
On the Recover your account screen, type the characters displayed in the box below Enter the characters you see, then select Next.
On the Verify your identity screen, choose to receive your security code either as a text or email message. If you choose text, type the last four digits of your phone number, and then select Send code. Learn more about security info and security codes
When you get the code as a text or email message on a separate device, enter it and then select Next.
On the Reset your password screen, create a new password, and then select Next. This sets your new password. Select Next again to return to the sign-in screen.
Sign in with your new Microsoft account password.
C.If you don’t have a Microsoft account and forgot your local account password, you can’t recover it. Instead, you’ll need to reset your PC.
Note: If you’re using Windows 10, version 1803, and added security questions to your local account to help you reset your password, select Reset password on the sign-in screen. (This link appears after you enter an incorrect password.) Then enter the answers to the security questions and choose a new password.
Warning: Following these steps will remove all of your data, programs, and settings.
Start your PC and select the Power icon in the bottom right-hand corner of the lock screen.
While holding down the Shift key, select Restart.
On the Boot options menu, select Troubleshoot > Reset this PC > Remove everything.
Your PC will restart and will reset itself.