How to get your Microsoft account 2FA secret key
Microsoft steers you towards its own Authenticator app, but a personal Microsoft account also accepts any standard authenticator. The secret key is behind “I can’t scan the bar code”.
Steps
- Go to account.microsoft.com, open Security, then the advanced security options (“Manage how I sign in”).
- Choose Add a new way to sign in or verify, then Use an app.
- Microsoft suggests its own app first. Choose the link to set up a different Authenticator app. Microsoft shows a QR code.
- Either scan the QR code with Quick2FA, or choose I can’t scan the bar code to see the secret key as text and paste it into Quick2FA.
- Type the 6-digit code from Quick2FA into Microsoft and choose Next.
Menu names change from time to time. If a label is different, look for the closest match under Security.
Good to know
- These steps are for personal Microsoft accounts (Outlook.com, Xbox, personal Microsoft 365). Work or school accounts are managed by your organisation, which may only allow the Microsoft Authenticator app.
- Number-matching sign-in prompts only work in Microsoft’s own app. With any other authenticator you type a 6-digit code instead.
- Add a second sign-in method, such as a backup email, so you are not locked out if you lose the key.
If Microsoft rejects the code
Check that your device clock is set automatically, that you copied the whole key, and that you entered the code before the countdown ended.