How to Keep an RDP Session Active After Disconnecting?

0
8
Asked By CuriousCat92 On

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

Answered By TechSavvyNerd On

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.

Answered By WindowsWizard123 On

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.

ScriptGuru88 -

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

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.