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 / Running a Desktop flow...
Power Automate
Unanswered

Running a Desktop flow from Portal failed

(0) ShareShare
ReportReport
Posted on by 7

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.

I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 862

#2
Valantis Profile Picture

Valantis 738

#3
Haque Profile Picture

Haque 553

Last 30 days Overall leaderboard