I'm trying to run a Power Automate Desktop automation on my RDP for an SAP GUI task. The issue is that when I disconnect from the remote desktop, the automation flow fails. Unfortunately, there are strict security restrictions in place on the RDP, and I don't have admin rights to change any policies or install workarounds. I've considered using the Power Automate cloud trigger, but I need a VPN to connect to the RDP, which complicates things further. I've been stuck on this for a week, trying things like automated mouse clicks with PowerShell and using tscon.exe, but I don't have permission for that either. I'd really appreciate any suggestions, even temporary solutions would help!
2 Answers
You might want to ask your admins if they can set up a service user that isn’t restricted, so it can stay logged in after you disconnect. Usually, this is standard for Windows RDP, and it could help your flow run without interruptions.
From my experience, when you disconnect from an RDP session, Windows essentially eliminates the desktop, making it impossible to automate anything because there's no screen to interact with. I think this limitation is even documented by Microsoft. So you might need a different approach to handle automation over RDP.

Actually, I run scripts on disconnected RDP sessions all the time. Have you tried accessing the console session? That might make a difference!