Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In some scenarios, Power Automate runs unattended flows in a lower resolution than the one you used to develop the flows. As a result, some UI elements could be hidden from the screen, and any images you captured might not be identified at runtime under a different resolution. This mismatch might cause flows to fail. In such cases, follow one of the approaches explained in this article to adjust the screen resolution used for unattended flows.
Note
You can set the screen resolution per target machine through the Windows registry or per flow through the flow properties. For unattended runs, the resolution defined in the flow properties takes precedence over the registry settings.
From flow properties
Go to the flow whose unattended resolution you want to change and select the properties button from its menu. In the properties pane, turn on the Display resolution for unattended runs toggle. Choose a resolution from the drop‑down or enter a custom value. The resolution should match the machine on which you originally developed the flow to ensure that the flow works properly.
From Windows registry
Set the screen resolution for unattended flows by using the Windows registry. This setting ensures that all flows running on that machine use the specified resolution unless you specify a resolution setting in the flow properties. Use this method with Power Automate flows starting with version 2.35.
Important
Setting the ScreenResolutionEnabled registry key to 1 overrides the settings in the UIFlowService.exe.config file. The registry settings for screen resolution persist after an upgrade of Power Automate Desktop, the UIFlowService.exe.config file is overwritten with default values during upgrades.
This task explains how to modify the Windows registry. Back up any registry keys you modify, such as the Power Automate Desktop key. For more information, see How to back up and restore the registry in Windows.
Open the registry editor (Windows key + R, and type regedit) and expand the
HKEY_LOCAL_MACHINEhive.Locate the Screen key in SOFTWARE\WOW6432Node\Microsoft\Power Automate Desktop\Global. If it doesn't exist, create it: right-click the Global key, select New > Key, type Screen, and press Enter.
Locate the following values in SOFTWARE\WOW6432Node\Microsoft\Power Automate Desktop\Global\Screen and set the corresponding values. If the value names don't exist, create them. To create them, right-click the Screen key, select New > DWORD (32-bit) Value, type ScreenResolutionEnabled, and press Enter. Double-click ScreenResolutionEnabled, enter 1, select Decimal, and then select OK. Repeat these steps for each value in the following table.
When you edit DWORD values, select the Decimal base (hexadecimal is selected by default). If you don't, the registry might interpret your values as hexadecimal, which results in incorrect resolution settings.

Important
The Power Automate installer writes registry settings in the 32-bit registry. However, if you set the screen resolution keys in the 64-bit registry (for example, SOFTWARE\Microsoft\Power Automate Desktop\Global\Screen), they take precedence. If the settings don't work as expected, check both locations and use only one.
| Key | Name | Type | Value |
|---|---|---|---|
| SOFTWARE\WOW6432Node\Microsoft\Power Automate Desktop\Global\Screen | ScreenResolutionEnabled |
DWORD | Set to 1 to enable the custom resolution settings. |
| SOFTWARE\WOW6432Node\Microsoft\Power Automate Desktop\Global\Screen | Width |
DWORD | Set the screen resolution width, such as 1920. |
| SOFTWARE\WOW6432Node\Microsoft\Power Automate Desktop\Global\Screen | Height |
DWORD | Set the screen resolution height, such as 1080. |
| SOFTWARE\WOW6432Node\Microsoft\Power Automate Desktop\Global\Screen | Scale |
DWORD | Set the screen resolution scale, such as 100. |
With UIFlowService.exe.config file (deprecated)
Important
The upgrade process overwrites the UIFlowService.exe.config file with default values and resets screen resolution settings. Set the resolution by using Windows registry settings instead.
To change the resolution for running unattended flows, edit the UIFlowService.exe.config file:
Go to C:Program Files (x86)Power Automate Desktop and open the
UIFlowService.exe.configfile.Set the value of the Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionEnabled element to
true.<add key="Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionEnabled" value="true" />Change the values of the following elements to the proper screen resolution width, height, and scale, respectively. The following code sets the default resolution to 1920 x 1,080 pixels.
<add key="Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionWidth" value="1920" /> <add key="Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionHeight" value="1080" /> <add key="Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionScale" value="100" />
Restart the
UIFlowServiceservice.To restart the service, start Windows Task Manager, select the Services tab, right-click the UIFlowService service, and then select Restart.

Note
Instead of restarting the UIFlowService, you can restart your machine.