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.
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.
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.
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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (2,011)