Hello, thank you for reaching out to Microsoft Q&A.
To relink your Windows to your Microsoft account after a system recovery, follow these steps:
Re-register your Microsoft account.
- Go to Start > Settings > Accounts > Your info.
- Select "Sign in with a Local account instead" and follow the on-screen instructions to complete the local account setup.
- Restart your computer, then log in with your local account.
Next, return to Settings and select Accounts > Your info, then choose "Sign in with your Microsoft account" again. Complete the sign-in.
- Sign out (or) Restart your computer.
After restarting, go to https://account.microsoft.com/devices and sign in with your Microsoft account to check if your device is registered. (It may take 24-48 hours to sync in your account.)
If it is still not registered, go to Start> Settings > System > About > Rename this PC.
Give your device a new name.
Once renamed, wait for 24 hours or more to sync the devices to your Microsoft account.
Let me know if you still need more help.