Your recovery code helps you get back into your Microsoft account even if something goes wrong—for example, if a hacker breaks into your account and starts making changes, or if you lose the phone on which you normally receive validation codes to sign in.
But a recovery code is only helpful if you've printed it or written it down somewhere safe, separate from your PC or device, before there's a problem. To create and print your recovery code, follow these steps:
Sign in to your Microsoft account.
Under Recovery Code, tap or click Set up.
If you've created a recovery code before, your screen will say Replace instead. Tap or click Replace.
Tap or click Print.
To help protect your personal data, we're asking everyone with a Microsoft account to make sure the security info associated with their account is correct and up-to-date. When your security info (like an alternate email address or phone number) is current, we can use it to verify your identity if there's ever a problem. For example, if you forget your password, or if someone else tries to take over your account, Microsoft uses your security info to help you get back into your account.
When you see a message asking you to update or verify your security info, you have seven days before this is required. You can postpone verification for a day, and you won't be prompted again for 24 hours. However, after seven days, Microsoft will lock your account to help protect it; you won't be able to sign in again until you've verified up-to-date security info.
Yes. Verifying your security info isn't optional—we need to do this to help keep your Microsoft account more secure.
Your security info is only used to help protect your account. For example, if you access your account and start making changes, we want to make sure it’s you who's doing so. We’ll send a one-time security code to the phone number or email address you’ve provided. When you enter the code we sent you, we’ll know it’s really you.
For this reason, it's important that you use a real phone number and email address for your alternate contact info. We'll never use this info to spam you or for any marketing purposes—it's only to verify your identity if there's ever a problem with your account.
No. When you receive and enter your verification code, we'll know that your alternate contact info is current, and you can sign in to your account as usual.
Occasionally, we might ask you to verify your security info again—for example, if you haven’t signed in for a long while. This is just our way to double-check whether your info is current. It won’t happen every time.
To add security info to your account, follow these steps:
Under Password and security info, tap or click Edit security info.
If you're prompted to enter a security code, check your alternate email or phone for the code from the Microsoft account team.
We can send a security code to your phone by text, or in an automated voice message. You can have one or more phone numbers associated with your account.
On the Security info page, under Phone number, tap or click Add.
Select your country code.
Enter your phone number.
Choose how you want to verify that phone number, either through an automated voice call or a text message, and then tap or click Next.
Check your phone for the verification code, enter it, and then tap or click Next.
The phone number you added appears in your account security info.
We can send a security code to your alternate email address. You can have one or more alternate email addresses associated with your account.
On the Security info page, under Alternate email address, tap or click Add.
Enter the email address, and then tap or click Next.
Check your alternate email for the verification code, enter it, and then tap or click Next.
The email address you added appears in your account security info.
No. A verification code doesn't replace your password. Don't enter a verification code in the Password box.
If you're having problems receiving your verification code via text message, try the option to receive an automated phone call instead.
You’re trying to verify one Microsoft account with a code from another Microsoft account. But when you sign in to the second account (to get the code sent to that address), most browsers automatically sign you out of the first account (the one that's actually requesting the code).
If you're using Internet Explorer, you can sign in to the second account using an InPrivate Browsing session. This lets you get the code without having to sign out of the account that's asking for it.
When you're prompted to enter the verification code sent to your alternate email address, don't close Internet Explorer.
Press Ctrl+Shift+P to open a new Internet Explorer window and turn on InPrivate Browsing.
In the new window, sign in to your alternate email account and look for the message from the Microsoft account team.
Copy or write down the verification code from the message.
Return to the Internet Explorer window that prompted you for the code. Enter the verification code and follow the instructions.
If you're using different browser software, check the manufacturer's help for info about "private browsing."
You can set up two-step verification to keep your account more secure. Two-step verification will always prompt you for a security code in addition to your password. If you decide to turn on two-step verification, it's especially important that your alternate contact info is valid, because you'll need it to get your security codes. For more info, see Two-step verification: FAQ.
If you change your account info frequently, you might want to set up a trusted device (like the PC you sign in to most frequently), so that you don't need to enter a security code every time you make a change. For more info, see Trusted devices: FAQ
Need more help?Email Microsoft supportChat with Microsoft support
Give us feedback