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

Notifications

Announcements

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
    68,725 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
    68,725 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
    68,725 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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard