: Some users attempt to patch the file on Server 2019 to avoid the cost of RDS CALs, though this is a violation of Microsoft's licensing terms. Risks and Better Alternatives
Instead of modifying system DLLs—which can cause instability and is a violation of the Microsoft License Agreement—you should use the official method: Install RD Session Host termsrvdll windows server 2019