Skip to main content

Notifications

Community site session details

Community site session details

Session Id : zMc2wNUHCwzCUY3m26zIeo
Power Automate - Power Automate Desktop
Unanswered

Power Automate Desktop Unattended Mode Issues

Like (0) ShareShare
ReportReport
Posted on 5 Mar 2024 14:55:57 by 2

We have a Power Automate Desktop Flow that needs to run on a VM unattended. We find that running on attended, it works fine but it is failing when we switch it to unattended.  The error message that is it giving out is 'Problem while executing action 'AttachToChromeByTitle'. Failed to assume control of Chrome. No Chrome browser window was found within the remaining timeout period (2 seconds).'

We checked and chrome extension is there and it is working fine when running on attended. our vm/server that we are using is on prem and it has this screen which we think might be the reason why chrome is not getting detected?

ArianneC_0-1709650369224.png

Do you know if running unattended, it is bypassing this screen or is it getting stuck on this screen? or is there some kind of login agent that we can use to get the bot to login to this server, press ok and go on with running the flow? 

  • Malik5 Profile Picture
    on 25 Jun 2024 at 19:29:25
    Re: Power Automate Desktop Unattended Mode Issues

    @ArianneC you probably have the Microsoft Store version of Power Automate Desktop installed. Please uninstall it from the VM and install it via the MSI Installer, this should resolve the 'Failed to assume control' issue.

     

    https://learn.microsoft.com/en-us/power-automate/desktop-flows/install#install-power-automate-using-the-msi-installer

     

    Thank you.

  • cwischnewski Profile Picture
    110 on 06 Mar 2024 at 13:44:40
    Re: Power Automate Desktop Unattended Mode Issues

    I just re-read your message.  The error is on an attach to chrome by title.  So are you launching chrome earlier just fine?  How can you do an attach when no chrome instance is running?

  • cwischnewski Profile Picture
    110 on 06 Mar 2024 at 13:38:35
    Re: Power Automate Desktop Unattended Mode Issues

    Our company uses that same type of message on logon, we have never had any issues with Unattended.  Are you using the same network user for both Attended and Unattended.  It is possible if they are different users, that chrome is not right for the unattended user. 

     

    Another thing to try is to use Remote Desktop once the desktop flow is going.  Maybe have a flow that pauses for a minute- before trying to start Chrome, then run it, RDP into that machine to see what is going on.  Just note that once you make the RDP connection you have to keep it open until the bot is done, at which time it will automatically log off for you and your RDP session will end.

     

    One more thing to consider is that the default setting in for the service that handles opening the session, it will run the desktop at 1024x768.  We found that our web apps switch to a tablet UI at that resolution, so we had to investigate the config settings necessary to force higher resolution.

     

    Hope some of that helps.

  • eetuRobo Profile Picture
    3,245 Super User 2025 Season 1 on 06 Mar 2024 at 07:30:54
    Re: Power Automate Desktop Unattended Mode Issues

    I would assume that the unattended gets stuck to that screen. Its probably your organizations security settings that make that screen appear.

     

    When you run attended on the VM are you logged in to the machine with same account as the unattended bot? Or is that your account and not the automations account? That would explain why you don't get the screen when running attended but the bot gets it since your account probably has authorization to the VM and the bots account doesn't.

     

    Can you ask the people who admin the accounts to give same authorization as regular employee to the automation account?

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,695 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started