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 to detect if a Pow...
Power Automate
Suggested Answer

How to detect if a Power Automate Desktop flow is running unattended on a VM?

(0) ShareShare
ReportReport
Posted on by 123

When an automation is running via Power Automate Desktop, is there any explicit service or process running on the virtual machine (VM) that indicates a flow is being executed unattended?

The reason for my question is that I would like to detect whether such a service or process exists on the machine. If I find that no such service is active, I would like to either shut down or delete the VM.

Is there a way to identify this reliably?

  • Suggested answer
    eetuRobo Profile Picture
    4,587 Super User 2026 Season 2 on at
    The way you run Power Automate Desktop flows unattended is to run it from Power Automate Cloud and choose Run Mode to be Unattended. Then it will always attempt to run the flow unattended. If there is no user session available that could run the flow unattended it will fail. Unattended also needs a license to be able to run.

    It wont run it attended unless you have chosen the Run Mode to be Attended. So there shouldn't be a need to try to detect if the flow is running unattended or attended since you configure that to the flow.



  • razec18 Profile Picture
    123 on at

    Thank you for your detailed response and explanation! I appreciate your time in clarifying how the unattended mode works and the configuration required to run it.

    However, my question is slightly different. I am already aware that a flow is running in unattended mode on a VM. What I would like to know is whether there is any specific service or process that runs on the VM during the execution of an unattended flow.

    My goal is to create another flow that can check if such a service or process is active on the VM. If it detects that the service or process is not running, I would like to proceed with shutting down or deleting the VM to optimize resource usage.

    Could you provide any guidance on how to identify such a service or process that signals an unattended flow is actively running?

    Thank you again for your help!

  • eetuRobo Profile Picture
    4,587 Super User 2026 Season 2 on at
    Ah apologies for the misunderstanding on my part. I don't know if any such service or process exists.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 245 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard