In non-production or lab environments, administrators may want to allow for testing, training, or personal use. The patch modifies a single byte in termsrv.dll to remove the two-session limit, bypassing the need for RDS licensing.
After reboot, check:
Before patching a system file, consider the built-in methods for enabling multiple sessions, which are more stable and secure: Patching Microsoft's RDP service yourself - Sam Decrock termsrv.dll patch windows server 2022
if (false) // Always skip the denial DenyConnection(); In non-production or lab environments