Hello @Robert Gijsen
I think we need to remove that user account from Remote Desktop Users group.
And also check if you add the user or group to “Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment > Allow log on through Terminal Services"
Here's an explanation given by this doc, but applies to Windows Server 2008:
“However, in Windows Server 2008 this setting is checked on a machine that has Remote Desktop Services in Application Mode only. Remote Administration mode won't check this parameter. If you change the Windows Server 2008 server to Remote Desktop Services Application Mode by installing the role, this user won't be denied logon via RDP.”
They also give a resolution by using group policy.
- Start | Run | Gpedit.msc if editing the local policy or chose the appropriate policy and edit it.
- Computer Configuration | Windows Settings | Security Settings | Local Policies | User Rights Assignment.
- Find and double-click "Deny logon through Remote Desktop Services".
- Add the user and / or the group that you would like to deny access.
- Select ok.
- Either run gpupdate /force /target:computer or wait for the next policy refresh for this setting to take effect.
Reference article:
Deny log on through Remote Desktop Services
Best Regards
Karlie
----------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.