I'm having an issue with signing out from an RDS server. When I attempt to log out, it gets stuck on the signing out page. I've tried a lot of solutions like OS repair, but nothing seems to work. It feels like there's some process running in the background that's causing this problem. Is there a way to forcefully log off from the server? I've even tried creating a batch file with 'shutdown /l /f', but it didn't help. Any ideas or suggestions would be greatly appreciated!
4 Answers
This might indicate some profile corruption. Deleting the problematic profile and letting the system recreate it could help. If that doesn’t work, consider setting up a new server or cloning one that’s functioning properly.
One quick fix could be to simply nuke and rebuild the server. Honestly, it might save you more time in the long run than trying to troubleshoot endlessly.
This issue appears to occur for everyone at certain times during the day. I've made sure that no backups are running during those moments, but it seems like it hits at random times.
If you can access another session, you can run 'query session' to find the ID of the stuck session. Then use 'logoff [session ID]' to force it off. Also, check Task Manager for any hung processes that could be causing the issue—ctfmon.exe or Teams are common culprits. If this happens for all users, there might be a Group Policy or logoff script causing a hang.

I'll try making a script to kill the task. I've used both the command line and Task Manager, but it still gets stuck. No Group Policy seems to be in place either, so thanks for the tip!