Please follow these steps to check the issue:
Click Start, Run. Type
GPEDIT.MSC and press Enter. Navigate to:
Computer
configuration | Administrative Templates | Windows Components | Remote
Desktop Services | Remote Desktop Session Host | Connections
In the right-pane, double-click
Allow users to connect remotely using Terminal Services, set it to
Not configured.