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 / Using Unattended Deskt...
Power Automate
Unanswered

Using Unattended Desktop Flows on a VM

(1) ShareShare
ReportReport
Posted on by 2

We are implementing an RPA to handle file uploads for a vendor who doesn't have an API. The flow is essentially this:

 

  1. Our user clicks link that sends an HTTP request to Power Automate (First step in our cloud flow is "When an HTTP request is received")
  2. Power Automate connects to SharePoint and the File System to find and download the document based on the body of the original HTTP request
  3. The Power Automate Desktop Flow is initiated that visits our vendor's portal, navigates to the correct "Upload File" page, and uploads the file

This flow works as designed in "Attended" mode, however running in "Unattended" mode gives the error "There is a user session on the target machine. Cannot execute unattended desktop flow."

 

We would like this to run in the background for our users, so we'd like this flow to be "Unattended", but our user is always going to be logged in to Windows, thus there will always be a user session on the target machine.

 

Is our best option to set up a VM with the Power Automate and Desktop Flow, or is there a better/easier solution that I am overlooking?

 

Thanks

I have the same question (0)
  • dewrimburak Profile Picture
    28 on at

    Why is the support team not responding? From where? From where? The support team doesn't know either. I will write to all Microsoft employees from LinkedIn.

  • evilnw Profile Picture
    78 on at

    Hello.

    Try this solution https://docs.microsoft.com/en-us/power-automate/desktop-flows/run-pad-flow

    To run unattended desktop flows, the target machine needs to be available with all users signed out.

  • Waylold Profile Picture
    106 on at

    @evilnw , this is only partially true, depending if you're running it on windows server or not. 

     

    @dwm365 We are currently running a dedicated account for Unattended that handles all the RPA functions. We are executing it on a windows server, so we can run other accounts that are not the dedicated one, but this is generally for administration only. You will need to ensure that whatever account the RPA is executing under is not logged into the target machine, otherwise this error will persist. Hope that helps. 

     

  • dewrimburak Profile Picture
    28 on at

    There is no solution for the issue I want in the given link. I am able to run attended bot on remote desktop computer. but I still can't run it unattended and still no solution.

  • dewrimburak Profile Picture
    28 on at

    @evilnw    how can i log out all users on remote desktop computer?

  • dewrimburak Profile Picture
    28 on at

    @Waylold Can you show how you did this? do you have a screenshot how did you do it?

  • Waylold Profile Picture
    106 on at

    Using a cloud trigger in power automate cloud you'll need configure something to trigger your automation to run. Generally a schedule, button or other action. You'll then need an account with an Unattended license applied in your environment, we use one called power.automate. The cloud flow will then need to know which machine to point to using your connection configuration, then simply let the action go: 

    Waylold_0-1642793331898.png

     

  • dewrimburak Profile Picture
    28 on at

    we have license but as i said i tried everything but i get same error

  • Waylold Profile Picture
    106 on at

    Did you apply the unattended license in power platform admin?

     

  • hitakshi Profile Picture
    162 on at

    How to set up a VM and how to connect with our flow in Power Automate?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard