A User Account Restriction Is Preventing You From Logging On
The error message "You cannot log in due to account restrictions" is displayed when you log in to the system using the remote desktop function. This is because your account password is blank, and the remote computer you log in to only allows local accounts with blank passwords to log in to the console by default.
You can try the following steps to see if it helps with this issue。
Click the "Start" menu, click the "Run" command.
In the open Run dialog box, enter "secpol.msc" and click "OK" to open the local security settings.
In the console tree window on the left, expand "Local Policies" - "Security Options"
In the right window, double-click to open the "Accounts: Local accounts with blank passwords only allow console logins" item.
Enter the "Local Security Settings" tab interface, select "Disabled", and click "OK" to save the changes.
I hope this reply could address your question, or if you will have any question on it, please feel free to let me know.
来源:https://answers.microsoft.com/en-us/windows/forum/all/microsoft-remote-desktop/0c753149-b671-45fc-a9ec-a1ad809158df
标签:Restriction,Account,console,log,Preventing,Local,click From: https://www.cnblogs.com/profesor/p/17399046.html