The Remote Desktop Connection prompts "You cannot log on due to account restrictions ".
As needed, a friend's Remote Desktop Connection is controlled in a large LAN.
Set "allow users to remotely connect to this computer" on his computer ".
Then run mstsc to open the Remote Desktop. when entering the ip address for access, the system prompts "You cannot log on due to account restrictions ".
It has been verified that this is because windows security policy has set "a local account with a blank password can only log on to the console.
This solution is actually quite simple.
1. Set the password and log on
2. Disable the "allow console logon only for a local account with a blank password" setting.
The change method is as follows:
1. Open "group policy ". -- Gpedit. msc
2. Expand in sequence: Computer Configuration-windows Settings-Security Settings-local policy-Security Options
3. Find "Account: A local account with a blank password can only log on to the console"
4. Change the attribute in the figure to "disabled.