I found a solution after encountering this problem on my computer. My account on the host computer is set to never sleep, but when I connect via RDP (same account) the power setting is 'balanced'. I changed that to high performance and now the host doesn't go to sleep when I disconnect.
Windows 11 goes to sleep after Remote Desktop session disconnects
Hey everyone,
My issue is quite simple however I can't find how to solve it...
When I do remote desktop sessions to one of my computer (windows 11) and close the session (disconnected it), the computer goes to sleep.
I already did the following:
- Double checked that all the power settings related to sleep are set to never.
- Set the group policy to prevent sleep on remote desktop disconnect.
But it still goes to sleep when I disconnect,
Any ideas ?
Best regards and many thanks in advance,
Thomas
*** Moved from Windows / Windows 11 / Sleep and Power on, off ***
Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.
-
Anonymous
2024-09-03T11:21:38+00:00
4 additional answers
Sort by: Most helpful
-
Anonymous
2024-08-06T07:03:36+00:00 Hello Thomas,
Thank you for reaching out to Microsoft support.
Based on the information you have provided; It seems that you have already checked the power settings and set the group policy to prevent sleep on remote desktop disconnect.
To clarify, are you experiencing an issue where disconnecting an RDP session triggers the remote computer to go into sleep mode? Could there be a scheduled task causing this behavior?
Additionally, is your host machine part of an organizational domain? If so, are there any domain-wide group policies that might be controlling this behavior? Also, could you please specify the exact group policy setting you used to prevent sleep on Remote Desktop disconnect, as I'm not aware of a specific policy for this purpose?
Best Regards,
Karlie
-
Anonymous
2024-08-08T10:45:20+00:00 Dear Karlie,
Thanks for the quick reply ! It is indeed what I'm experiencing, as soon as I disconnect my session it goes to sleep...
I looked through the task scheduler and did not spot anything, is there a better to check if a task is causing that behavior ?
No it's not part of an organizational domain.
The group policy I'm referring to is the following:
Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Session Time Limits.I remain at your disposal for any further information,
Best regards,
Thomas
-
Anonymous
2024-08-09T02:55:45+00:00 Hello,
This policy appears to be used for controlling session behavior once a time limit has been reached, and it is not related to the behavior of the host machine (which refers to the computer configured to allow remote access by other devices).
You should check the Task Scheduler settings on the host machine. For Windows 11, you can inspect the Applications and Services Logs in Event Viewer, specifically looking at:
- Microsoft > Windows > TaskScheduler
Find relevant events based on the time when the issue occurred. Additionally, review the System log, as it may contain information about the computer going to sleep. Logging power events (sleep & wake up) to the event log - Microsoft Community
Best regards,
Karlie
-
Anonymous
2025-02-10T22:55:02+00:00 Ty Mikel. You made my day. I was getting crazy with this issue...
Br