Hi Pankaj Vashisht,
Based on your observations, the RDP pipeline is completing authentication (Event IDs 261 and 1149) but failing to attach to the existing console session, which explains why no new session appears in quser. This behavior has been reported in certain Windows 11 builds where long-running workloads and repeated connect/disconnect cycles cause the Local Session Manager (LSM) to stall. The presence of multiple Python processes is not the direct cause, but the high process count can increase session state complexity.
As a workaround, you can try enabling Network Level Authentication (NLA) and ensuring the latest cumulative updates are installed, since Microsoft has addressed several RDP session handling issues in recent patches. Another option is to configure Group Policy > Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections > Restrict Remote Desktop Services users to a single Remote Desktop Services session. Enabling this forces reconnections to bind to the existing console session rather than attempting to spawn a new one.
If the hang persists, you can attempt to reset the RDP service stack without rebooting by running:
powershell
net stop termservice
net start termservice
This will disconnect active sessions but may allow reconnection without terminating your workloads. For production scenarios, I recommends applying the latest Windows 11 23H2 or 25H2 cumulative updates, as these contain fixes for session reconnection stalls.
If this guidance helps clarify the issue and provides a path forward, please hit “Accept Answer” so I know your issue is resolved 😊.
Jason.