thanks for your answer. I
n fact, I got the idea form参考文档: Windows 10 远程桌面凭据 - 超级用户.
that is ''If your Windows account is linked to a Microsoft Account, and you have never logged in by using the current password, then the password will not be cached, and therefore, it's not possible to log in remotely using the password.
This can easily happen if you used one of the passwordless authentication methods to first log into your PC, for example, signing in with a security key or via approval using the Microsoft Authenticator app on your phone, and then continued to use the same method or a PIN for login, or if you changed your password and Windows hasn't seen the new password yet.
The fix in that case is simple. Lock the computer, select the "password" login method, and log in at least once with the current password while connected to the internet - once Windows has seen you log in successfully with the password, it will update the hash it stores locally, and Remote Desktop logins should now work using the Microsoft Account email and password.
There's no need to switch the account to a local account and back, or even to fully log out, only to log in or unlock the computer locally at least once while Windows is able to verify the password against the Microsoft servers.''
your computer must through MSA key register in it.Just like the aforementioned answer.
Here is my solution: Press Win+L to enter the lock screen, choose to log in with your Microsoft account password, not a PIN. If you don’t have the password login option, make sure to disable 'Windows Hello sign-in only' in Settings > Accounts > Sign-in options.
这是我的解决方案:win+L进入锁定状态,选择微软账户密码登录,不是pin码,如果你没有密码登录选项,请确保在设置,账户,登录选项中禁用仅windows hello登录。