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 / Unable to Create Unatt...
Power Automate
Unanswered

Unable to Create Unattended Session

(0) ShareShare
ReportReport
Posted on by 1

I created a Scheduled Cloud flow that calls a Desktop Flow to run in Unattended mode.  I have it connecting directly to a machine but when it runs I get "Cannot create new session to execute unattended run."   I registered the machine with my login and also have it connecting with my credentials.  I confirmed there are no active user sessions on this machine.  How do I troubleshoot this?  Is there something that will tell me "why" it can't create the session?  (like a permissions issue for example) Thanks for any help.

I have the same question (0)
  • azimzicar Profile Picture
    72 on at

    Is the machien a VM or physical machine you control? Firstly you need to test if the machine is available even after long periods of being idle. I'd recommend scheduling a test flow to run few minutes after and see if that works. That will help you narrow down to the root cause hopefully

  • titiu Profile Picture
    4 on at

    I had the same error and the issue resides in the permission of service account that Power Automate uses to log in on the machine. By default this is set to NT SERVICE\UIFlowService. You either give permission to this account to log in the target machine see link below:

    https://support.microsoft.com/en-us/topic/desktop-flows-failure-could-not-start-flows-due-to-security-policy-38dabc6c-16d2-cd42-076a-d70ef2ebb30a

     

    Or 

     

    You can tell the service to use your user details to log on in the machine by:

     

    Search for Power Automate Machine runtime on your PC. Under troubleshoot menu, you will get an option to change your account to log on to the machine.

     

    That should resolve the above issue.

    https://powerautomate.microsoft.com/en-us/blog/introducing-power-automate-machine-runtime/

     

  • Lucian Profile Picture
    256 on at

    Hello,

     

    I know is an old topic, but I have bumped into the same issue when playing around with Power Automate Desktop Flows, testing them into an Windows 10 virtual machine.

     

    I had one of these two errors:

    "Cannot create new session to execute unattended run."

    or

    "There is a user session (id: 1, state: Active) on the target machine. Cannot execute unattended desktop flow."

     

    Both errors come up either through the installed gateway either directly using the "machine connection".

     

    In my case the problem was solved using another virtual machine with Windows Server 2019. At least in my case, the flow cannot be ran as "unattended" on Win10 machine, despite the official documentation where in the Prerequisites is stated that Win 10 Pro & Enterprise are also allowed for unattended scenarios.

    And every time I have tested the unattended scenario, either I have used the "Sign out" option, either freshly restarted the VM without logging on.

    The "attended" scenarios worked without any problem on my Windows 10 Enterprise, but the unattended NOT.

     

    Hope this helps.

    Lucian

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard