This method works universally for Windows 10 and 11 and relies on the operating system's ability to repair and re-add Windows features. It's a particularly effective method if your client is damaged but not completely removed.
Right-click the and select Terminal (Admin) or Windows PowerShell (Admin) . reinstall remote desktop connection