I am trying to trigger a Power Automate Desktop Flow when an Item in SharePoint changes.
The Desktop flow gets triggered when I am logged in to the Machine via RDP but when I disconnect RDP session, the flow fails and the following error is shown
No machine able to run the desktop flow has been found. Aborting execution. Error encountered when connecting to machines: No unlocked user sessions found on the target machine. Cannot execute attended desktop flow.
I checked the documentation regarding the error it says the following
NoUnlockedActiveSessionForAttended- the most common way to get this error is when you try to run an attended desktop flow on a target machine that is locked or with no user signed in. You can also get this error when the Windows user you're currently logged in with on the target machine doesn't match the user you entered in your connection. Attended desktop flows can only execute if the machine is unlocked on a session where the current user matches the one from the desktop flow connection. Check the credentials used in your connection and make sure they are the ones used on the unlocked session.
Also I came across this post from the Community, which provides the solution for my problem, that is
tscon.exe 2 /dest:console
I don't know how to use this tscon which gets triggered when I disconnect from my RDP session. Also instead of the workaround using tscon, is there a permanent solution?
The Power Automate Desktop version I am using is 2.33.89.23145
I checked "NT SERVICE\UIFlowService" is already available in the Remote Desktop Settings.

Report
All responses (
Answers (