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 / There is a user sessio...
Power Automate
Unanswered

There is a user session on the target machine. Cannot execute unattended desktop flow.

(0) ShareShare
ReportReport
Posted on by 28

Error ''There is a user session on the target machine. Cannot execute unattended desktop flow.'' Please someone answer this question nicely. Add a screenshot of what we need to do. why this error. The support team is not very interested.

I have the same question (0)
  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    You can't run an unattended flow on a machine where someone is logged in.  Make sure everyone is logged out of the target machine, but don't shut it down.  Then run the unattended flow again.

  • dewrimburak Profile Picture
    28 on at

    actually i want to do it in virtual machine. there is no logout option for this. 

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    Take a look at this article on how to create a VM to use for running UI flows.  The point  is that you have to start the flow without having anyone logged in to it.  Using Azure VM's to run UI Flows (RPA) - FlowJoe.io

  • dewrimburak Profile Picture
    28 on at

    Does anyone still solve this error? Will anyone help? I can't run it on remote desktop computer.

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    For Remote Desktop try this article.

    Automate Microsoft Remote Desktop with the May 2020 update to UI flows in Power Automate | Power Automate Blog

    But this is about running the PAD from inside an RDP session, not unattended.  You can only run unattended when the flow itself logs in to the remote machine.  You can't do that if someone is already logged in.

  • dyland- Profile Picture
    6 on at

    Hi @dewrimburak 

    I just resolved a similar issue on my machine.

    On your Virtual Machine, try to "Sign Out" as your user instead of disconnecting the session. Once signed out, give it a minute or so and try to run the flow again.

     

    To Sign Out, instead of clicking 'Power', click your profile in the Start Menu then 'Sign Out'

  • sotheara Profile Picture
    4 on at

    You can sign out your user before running the flow by simply press Ctrl + Alt + End => Sign Out

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    When you use Windows Server it supports, multiple sessions. Otherwise as advised perform sign out before flow run.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard