In the left-side pane, navigate to Local Computer Policy > Computer Configuration > Administrative Templates > Windows ...
Windows 11 has a bug where the RDP session hangs on login. It's unclear if the Windows 11 24H2 base release is at fault.