Official ways to reset a forgotten Windows password or PIN for Microsoft and local accounts, Apple's Mac login password reset, and what to prepare.
Windows sign-in accounts are either a Microsoft account, signed in with an email address, or a local account that exists only on that computer. If the sign-in screen shows an email address, it is usually a Microsoft account. The two reset very differently.