While there are several threads about Windows RDP sessions and sleep I could not find one matching my use case.
I encounter the following situation. After I close the RDP connection to a Windows 11 system it immediately goes to sleep. Also if the connection is lost the remote computer goes to sleep and I have to turn it on again before I can reconnect.
Is there a way to prevent this behaviour? It would be OK if it goes to sleep after a time of inactivity, but not right after disconnection.