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 mode execut...
Power Automate
Suggested Answer

Unattended mode execution in VM

(0) ShareShare
ReportReport
Posted on by 10
Hi Guys,
 
I am in rather a pickle right now with one of the flows that I have built which is supposed to run in unattended mode. The problem is that as per the IT team the VM's idle session timeout limit is 15 mins but when I am running the flow in unattended mode, after processing for a certain amount of time, a windows pop up comes saying:


Exactly 2 mins after this the machine gets disconnected and the flow fails. I have tried several methods like executing a VB script which will send a keystroke after every 20 seconds to keep the session alive/opening a note pad & sending keystrokes/mouse moves but nothing seems to work. Even though this process involves various input methods like clicks & text inputs on web page but still the VM refuses to detect those as some physical activity and this pop up comes up & as a result the machine gets disconnected. Alse, the flow runs flawlessly in attended mode so I can say that logically there isn't any issue.
 
I am out of solutions right now & if anyone can help me or give me some leads as to what exactly the problem can be; I WOULD BE OBLIGED!!!
I have the same question (0)
  • Suggested answer
    SwatiSTW Profile Picture
    809 Super User 2026 Season 1 on at
    Your VM has a 15-minute idle timeout, and when running the Power Automate Desktop flow in unattended mode, Windows does not detect the automation as real activity. This causes a pop-up warning, and after 2 minutes, the session disconnects, making the flow fail. Even though the flow interacts with webpages, the system still sees it as inactive. The issue does not happen in attended mode, meaning it’s related to session inactivity detection.

    Ask IT to increase the idle timeout or change settings to recognize automation as real activity. If IT cannot change policies, use a PowerShell script or a Mouse Jiggler tool to move the mouse slightly every few seconds. You can also modify your Power Automate flow to send periodic keystrokes or move the mouse using UI automation actions. Running the flow on a different VM or physical machine may also help.
  • AM-27020944-0 Profile Picture
    10 on at
    Thanks for your reply but I have already used methods like opening a notepad and sending some keystrokes & closing the notepad, running vb script which sends keystrokes every 20 sec in admin mode, mouse moves but nothing seems to work. Is there anything in specific that I can tell my IT team to look into which may help me with this issue?
     
    Also, is it like a known issue?
  • Suggested answer
    eetuRobo Profile Picture
    4,535 Super User 2026 Season 1 on at
    Try using something else than scripting. I think windows does not see scripts as real activity. Use PADs own actions like Send keys and toggle the "Send Text as hardware keys" ON so it doesn't see them as virtual presses but actual keyboard presses.


  • Suggested answer
    Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at
    Hi there,
     
    I would suggest creating a child flow, which you can call to run in parallel to handle this popup message. Microsoft recently introduced feature. Please follow the attached video to see if it helps resolve your issue.
     
     
    Thanks,
    Deenuji Loganathan 👩‍💻
    Power Automate Desktop Community Champion 🤖
     
  • OW-29071318-0 Profile Picture
    12 on at
     
    How can I change settings on my VM to recognize automation as real activity?
     
     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard