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 / How does power automat...
Power Automate
Unanswered

How does power automate work in session locked state? unattended bot

(0) ShareShare
ReportReport
Posted on by 18

hello. I purchased an unattended bot

 

{
 "error": {
 "details": [
 {
 "code": "SessionExistsForTheUserWhenUnattended",
 "target": "EPIC-OFF1-WIN11",
 "message": "There is a user session on the target machine. Cannot execute unattended desktop flow."
 }
 ],
 "code": "NoCandidateMachine",
 "message": "No machine able to run the desktop flow has been found. Aborting execution. Error encountered when connecting to machines: There is a user session on the target machine. Cannot execute unattended desktop flow. (EPIC-OFF1-WIN11)"
 }
}

 

https://learn.microsoft.com/en-us/power-automate/desktop-flows/run-unattended-desktop-flows

While looking for the cause of the above error, I came across an article related to unattended flow run.

 

Q. In a locked session state, is it impossible to use attended mode or unattended mode?

I also never knew there was a "locked session state";

⇒ In power automate (desktop), is there a way to run a flow in a locked session state?

 

Q. If I run the flow in unattended mode while logged out, will I be automatically logged out after the flow ends? - Is it true that an unattended bot can reuse the PC in the next execution flow?

 

Q. When you log out, all initially run programs or windows will close. When using an unattended bot, do I also need to add logic to automatically turn on the program in the power automate logic?

Until now, we thought that unattended bots operated in a locked session state, and we did not develop initialize on logic for various processes after logging in.

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @ksh 

     

    The error message indicates that the machine you configured for unattended run is currently being utilized by another user. In an unattended run scenario, your virtual machine should be powered on but not actively in use by any other user; in other words, it should only be turned on.

     

    If another user is logged into the VM and has it locked, Power Automate Desktop won't be able to access it. Therefore, ensure that your VM is simply turned on and not logged in with any user account.

     

    If any user has utilized the machine, ensure they have logged out during finishing their tasks. Additionally, confirm that the user logs out from the machine during the scheduled unattended flow time.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard