cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dewrimburak
Helper I
Helper I

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

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.

6 REPLIES 6
Pstork1
Dual Super User
Dual Super User

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.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!
dewrimburak
Helper I
Helper I

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

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



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!
dewrimburak
Helper I
Helper I

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

For Remote Desktop try this article.

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

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.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!
dyland-
New Member

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'

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Top Solution Authors
Top Kudoed Authors
Users online (4,276)