Remote desktop not working with microsoft account

If you can’t logon to remote desktop (Microsoft Windows 10 / Windows 11) from a Microsoft account, try this command line:

[WINDOWS KEY] + R

runas /u:MicrosoftAccount\YOUR_EMAIL_ACCOUNT winver

Type you Microsoft Account password when prompted.

Now you should be able to connect to this system without an issue (assuming, of course, that was your problem and you are running a Pro version of Windows).

Source: https://answers.microsoft.com/en-us/windowserver/forum/all/remote-desktop-not-working-with-microsoft-account/71f0c323-688a-4c97-8740-e80eb31ae11d