There are two ways to recover your Windows 8 or 8.1 Password Easily but first you will need to understand the type of accounts that exists on Windows 8/8.1.
Two types of account that exists on Windows8/8.1 are:
1. Local Account
2. Microsoft Account
Local Account is the one that is being carried over from previous versions of Windows (XP, 7, Vista, Me, Home). It means, that you have an account which is local on the computer and not associated with the e-mail address – whereas, Microsoft Account is the one that is associated with your e-mail address. It can be a @hotmail, @outlook or @live account or any other e-mail address.
If you have an account, which is associated with an e-mail address, you will see your email address on the login screen. To reset your password, you need another devices to access this page Reset Windows 8/8.1 Password
On this page, select I forgot my password, on the next screen, enter your e-mail address which you see on the login screen and proceed with the next option. You will then be given a choice to select a method so Microsoft can send you a code. Choose the method and proceed next, Once you have the code you enter it and reset your password.
After it has been resetted, you can use this password to login to your Windows8/8.1 computer.
Now, if you have a local account, then the best way is to reset the PC. To do this, at the login screen, click the Power button, you will get the restart option, HOLD the SHIFT key and select Restart.
This will restart your computer into advanced mode, from here select Troubleshoot, then select Reset your PC, then select Fully Clean The Drive.
Windows 7 Password Reset Instructions