If the PC is signed in with someone else’s Microsoft account and the password is not available, the practical path is to create a new local administrator account on the PC, then use that account and remove the old one later if needed.
- Back up any important files first. Removing an old account can delete data stored in that profile.
- In Windows, open Settings > Accounts > Other user.
- Under Add other user, select Add account.
- Select I don't have this person's sign-in information.
- Select Add a user without a Microsoft account.
- Enter a new username and password to create a local account.
- After the account is created, go back to Settings > Accounts > Other user, select the new account, then Change account type and set it to Administrator.
- Sign out of the current account and sign in with the new local administrator account.
If the goal is to use a Microsoft account afterward, the local account can be switched later:
- Open Settings > Accounts > Your info.
- Select Sign in with a Microsoft account instead.
- Follow the prompts.
If a brand-new Microsoft account is needed, create one first by selecting Create an account or going to https://signup.live.com, then complete the email, password, name, region, birthdate, captcha, and verification steps.
If account creation fails, supported alternatives are:
- use a different sign-up method, such as email instead of phone number
- use a different device
- set up the PC with a local account first, then switch to a Microsoft account later
Important:
- An old email address from a previously closed Microsoft account cannot be reused for a new Microsoft account.
- Deleting the previous Windows account removes data stored in that user profile.
References: