Do not give the buyer the old password. A PIN is only one sign-in method on a Windows device; the Microsoft account password is still tied to the account and can be used for account access. Sharing it would expose the account.
The supported path is to remove the account from the laptop by resetting Windows so the buyer can set it up with their own account.
If the buyer is at the Windows sign-in screen and cannot get in:
- If the laptop is using a Microsoft account password, the sign-in screen can offer I forgot my password or Sign-in options > Web sign-in > Forgot my password.
- If the laptop is using a local account, the sign-in screen can offer Reset password after selecting the arrow next to the password field, then answering the security questions.
- If there is already another administrator account on the PC, that admin can open Computer Management > Local Users and Groups > Users, right-click the affected user, and select Set Password...
- If there is no administrator account available to change the password for a local account, the device needs to be reset.
For a sold laptop, the practical outcome is that the buyer should reset the PC and then complete setup with their own account.
If password recovery options do not work, Microsoft support cannot retrieve or bypass a lost or forgotten password, and support agents cannot send password reset links or change account details.
References: