Set screen resolution on unattended mode

In some scenarios, Power Automate may run unattended flows in a lower resolution than the one used to develop the flows. As a result, some UI elements could be hidden from the screen and cause flows to fail.

To change the resolution in which unattended flows are run:

  1. Navigate to C:\Program Files (x86)\Power Automate Desktop and open the UIFlowService.exe.config file.

  2. Set the value of the Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionEnabled key to true.

    <add key="Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionEnabled" value="true" />
    
  3. Change the values of the following keys to the proper screen resolution width, height, and scale, respectively. The following code sets the default resolution to 1920 x 1080 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" />
    

    Screenshot of the appropriate keys in the UIFlowService.exe.config file.

  4. Restart your machine.

    Alternatively to restarting your machine, you can restart the UIFlowService service. To restart the service, launch Windows Task Manager, navigate to the Services tab, right-click on the UIFlowService service, and select Restart.

    Screenshot of the Windows Task Manager.