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 / Unattended Desktop Flo...
Power Automate
Answered

Unattended Desktop Flows on Windows Terminal Server (Remote Desktop Services)

(0) ShareShare
ReportReport
Posted on by 35

hi all, 

 

i am not able to find any good documentation if unattended desktop flows can run on windows server (e. g. windows server 2019 standard) if any other user is logged on that machine (not that user that is used in Power Automate to execute the flow).

 

On Run unattended desktop flows - Power Automate | Microsoft Learn i read that "Unattended desktop flows require an available machine with all users signed out."

 

On a windows server that acts as terminal server using using RDS (Remote Desktop Services) it is very unlikely that all users are signed off (that is the nature of a terminal server to provide a virtual desktop for centralized applications used by several users concurrently)..

 

Is an unattended desktop flow working if another user has a session on that windows server?

 

If not, how would an unattended desktop flow be able to work for this typical scenario?

 

thanks!

I have the same question (0)
  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    Hi,

     

    If I recall correctly, you say that your VM won't have everyone logged off from the VM?

    In that case, you can run your Robot in Attended :).

     

    This will Run your robot 'Attended' (in the way that its still an Unattended running robot, but in an Attended environment).

     

    Running it Attended should basically work for you. As someone is always logged in.

     

    Good luck.

  • JS-23061922-0 Profile Picture
    35 on at

    i was asking for "Unattended".. "Attended" cannot work on locked sessions afaik.

     

    and i meant "Unattended" for a user that is not logged in on that terminal server (you configure the user in your cloud flow that triggers the "unattended" flow) but what happens if other users are logged on that machine. the docu says that all users need to be logged off.

  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    My bad,

     

    if another user logs in on the VM that is running unattended. The flow fails with the error (user session logged in on the VM).

     

     

  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    And to answer: How an unattended desktop will work in this scenario.

     

    = It won't 🙂

  • JS-23061922-0 Profile Picture
    35 on at

    @OkanAT  thanks a lot for your answer.. it seems that "unattended" flows on Windows Servers that are used as terminal server (RDS) are not a good idea as terminal servers usually have a lot of concurrent users logged in (this is the nature of a terminal server).. 

     

    would "power automate agent for virtual desktop" (Automate on virtual desktops - Power Automate | Microsoft Learn) help? The server im talking about is a physical windows server. thanks!

  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    Hello,

     

    Oh Yes! We are using Virtual Machines, but Physical Machines are great (Probably even quicker). I guess you mean something like a Laptop or Desktop? Yes it will help and work. 

     

    I know big banks who use a Physical Machine to run their unattended robots.

     

    Good luck.

  • Verified answer
    momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Hi @jochen_dot @OkanAT 

    You CAN have unattended flow running simultaneously with other users working on the same Windows Server.

    You must ensure the unattended flow uses another/dedicated Windows user/credentials, not an account used by someone else or other unattended flows.

     

    ### Examples:

     

    #### Scenario 1 - Win 2019, no RDS, one unattended flow, one human session
    - without RDS server will accept a maximum of 2 concurrent RDP sessions
    - you can have one user logged in with, let's say "Developer Account" windows/domain account
    - at the same time, you can execute one unattended flow using the "Unattended Service Account" windows/domain account
    - no particular configuration is needed here; ensure your flow uses a desktop connection set up with a dedicated user account, different from the other user(real person) logging into the server, 
    - if more unattended flows are scheduled to run at the same time, they will be queued in the machine queue

     

    #### Scenario 2 - Win 2019, no RDS, two unattended flow
    - If you want two unattended flows run on such a machine, you need two unattended add-ons, and then no 3rd session can be connected (as a Win will not accept 3rd connection), and the unattended flows need to be using DIFFERENT windows/domain accounts for their session.

    - In this scenario, you might be required to install a gateway (I did not check the docs for some time, but I think it is still needed)

     

    #### Scenario 3 - Win 2019, with RDS, multiple unattended flows and "human" sessions
    - You can have a virtually unlimited number of unattended flows, but you need an RDS license for each session and enough resources.
    - Ensure each unattended flow is executed using different windows/user accounts - like in scenario 1
    - Ensure you have the required number of unattended addon-s; if you want five unattended flows at the same time - you need five add-ons
    If you have three add-ons, three unattended flows will be able to run at the same time, and the rest will be queued
    - in this scenario, you might be required to install a gateway (I did not check the docs for some time, but I think it is still needed)
    - So, in this scenario, you can have any number of unattended flows and people logged in, but you need to have RDS licenses for each session, an unattended add-on for each unattended flow and each of the sessions needs to be using a dedicated domain/windows account

  • JS-23061922-0 Profile Picture
    35 on at

    thanks @OkanAT , it it not laptop or desktop but dedicated physical Windows Server 2019 (not virtualized) used as Terminal Server, i guess @momlo answered the question already in the meantime, 

     

    thanks for your support

  • JS-23061922-0 Profile Picture
    35 on at

    thanks @OkanAT , 

    it is not a Laptop or Desktop but a physical Windows Server 2019 (not virtualized) used as terminal server (having parallel user sessions) .. 

    @momlo answered the question so far, thanks for your support

  • JS-23061922-0 Profile Picture
    35 on at

    thanks @momlo , that is really helpful ..

    just wondering that the official power automate docs says "Unattended desktop flows require an available machine with all users signed out.", see  Run unattended desktop flows - Power Automate | Microsoft Learn , would you have any explanation or is that a documentation issue?

     

    thanks again

     

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 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard