Thanks to Digital Entitlement, Microsoft now gives you a digital license for your Windows 11/10, as well as other Microsoft software, that you can save to the cloud, linking it to your Microsoft Account, so that whenever you fresh-install Windows, the OS will get activated automatically.
If you are already using a Microsoft Account to log in to your computer, your activated Windows will have automatically saved your Windows license to your Microsoft account.
If you use a Local Account to log in, your license may not get saved online. For this, you will have to take steps to link the Windows product license to your Microsoft Account.

How to link Windows 11 Product Key to Microsoft Account
From the Start Menu, open Windows Settings > System > Activation.
If your activation status says Windows is activated with a digital license, click on Add a Microsoft account.
The following window will open.

Here you will have to log in with the Microsoft account with which you want to link the license to. If you do not have one, you can Create one.
Once you sign in with your Microsoft account, Windows will link the two together, you will see a message always displayed: Windows is activated with a digital license linked to your Microsoft Account.
Read: How to check Windows Activation Status in Windows 11
Windows Activation Status messages:
| Activation Status | Description |
|---|---|
| Windows is activated | • You are activated. • Microsoft account is not linked. |
| Windows is activated with a digital license | • You are activated. • Your Microsoft account is not linked to your digital license. |
| Windows is activated with a digital license linked to your Microsoft account | • You are activated. • Your Microsoft account is already linked to your digital license. |
| Windows is not activated | • You are not activated. • You will see an error message explaining the failure. • You might need to purchase Windows 11 to activate. |
It may be a good idea to link the two if you haven’t already.
Read: How does Windows licensing status change with changes in hardware configuration.