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 / Searching for text (OC...
Power Automate
Answered

Searching for text (OCR) or images on screen (Attended vs Unattended)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a Desktop flow that searches for images and text on the screen and successfully completes

when the flow is run in the foreground (I'm logged into the VM when I execute the flow.)

But, if I logout of the VM and schedule a Cloud Flow to run the Desktop Flow in Unattended mode the image and OCR functions fail to find the items on the screen and throws an error.

Power automate does connect to the VM and executes the desktop flow just fine, until it hits 

the functions to search for text or images on the screen, then fails.

Should it matter if the flow is running in the foreground while logged into the VM as apposed to

running in the background (Unattended Mode)?

Thank You

I have the same question (0)
  • Verified answer
    Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    Make sure that the VM runs the same resolution as when you are running it in Attended mode.
    As default it will run in 1024x768 in unattended mode, and that will making your images undetectable if they are captured in a higher resolution.

    See below 

    Desktop\UIFlowService.exe.config and change the value to true (Default is false).
    Set the resulution in the file to match the one that you use on your machine for scripting.

    Highboy_0-1639034042984.png

     

    Otherwise you can run into some problems as the default resolution will be 1024x768.

    Remember to edit this file each time you update PAD to a new version.

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 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard