Hello Milad Amell,
Thank you for posting in Microsoft Community forum.
Regarding the inability to use RDP and local login to Windows Server 2019, If local login is not successful, remote RDP is not possible. Please resolve the local machine issue first.
And here are some steps you can try:
- Check if the Remote Desktop Services (RDS) is running: You can open the Services console (services.msc) and check if the Remote Desktop Services and Remote Desktop Configuration services are running. If they are not, start them and then try to connect again.
- Install any pending updates: Make sure that your server has the latest patches and updates installed. You can check for updates by going to Settings > Update & Security > Windows Update.
- Check for errors in the Event Viewer: Open the Event Viewer (eventvwr.msc) and look for any errors or warnings related to the login process. This may provide you with clues about the cause of the issue.
I hope the information above is helpful.
If you have any question or concern, please feel free to let us know.
Best Regards,
Bblythe Xiao