web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Run_a_flow_built_with_...
Power Automate
Unanswered

Run_a_flow_built_with_Power_Automate_for_desktop failed

(0) ShareShare
ReportReport
Posted on by

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.

 

@AnnaChu 

 

 

  • Parthiban759 Profile Picture
    56 on at

    You need to have a License with unattended

    If you are working on Trial then you can run when the machine is signed in

    If you have a license with Unattended, the flow can run only if you are signed out from the machine

  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    Hi,

     

    If you want to run it in unattended change your Run Mode to Unattended

    OkanAT_0-1686920267772.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 159

Last 30 days Overall leaderboard