If you've forgotten your laptop password, you can still access your computer by resetting your password. As Windows 10 passwords are tied to your Microsoft account, you need to reset your Microsoft account password. Mac OS X users can reset their passwords within the operating system.
If using Windows 10, open the login page of any Microsoft service, click the password recovery option, and follow the instructions. Some questions Microsoft may ask to verify your identity are: security questions, your name and the subjects of some of the emails you've received.
If using Mac OS X, log in to an administrator account, open System Preferences and click Users & Groups. Click the lock icon at the bottom left, select the account whose password you need to reset, and click Reset Password.