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 flow screen...
Power Automate
Answered

Unattended flow screen resolution

(2) ShareShare
ReportReport
Posted on by 17

Hi All

 

I'm running an unattended Power Automate Desktop flow on an Azure VM running windows 10

 

My issue is that the unattended flow seems to run at a low resolution (maybe 768 x 1024) which means a number of UI elements are not visible, causing the flow to fail. The flow runs successfully in attended mode at 1920 x 1080.

 

Does anyone have any thoughts on how to force the unattended flow to run at a higher resolution?

 

Thanks

I have the same question (0)
  • matow_MSFT Profile Picture
    Microsoft Employee on at

    @BG_PigThere's a "Set screen resolution" action in Power Automate Desktop that should help with this. 

  • BG_Pig Profile Picture
    17 on at

    Hi @matow thanks for replying. I should have mentioned that I had unsuccessfully tried running 'Set screen resolution'. It seems that Azure VMs have a limitation that the screen resolution is set on login and you can't change it once you've logged in. 

  • matow_MSFT Profile Picture
    Microsoft Employee on at

    @BG_Pig Ah, gotcha. Looks like it might be possible to set the VMs to default to a certain resolution using Powershell, if this isn't out of date: 

     

    How to change the VM default screen resolution? (microsoft.com)

     

    Reaching out to check for other recommendations. 

  • yoko2020 Profile Picture
    495 on at

    Maximum screen resolution in AWS/Azure is 1280x1024.

    You can change it using powershell.

  • rofi Profile Picture
    4 on at

    Hi @matow! I'm running PAD on a laptop with external screen attached and can't set the resolution above the default 1024 x 768 even with "Set screen resolution" action for unattended processes.


    Thanks for help

  • matow_MSFT Profile Picture
    Microsoft Employee on at

    @rofi Looking into this. Does the action "Set screen resolution" fail with an error, or simply not set? 

  • rofi Profile Picture
    4 on at

    @matow There's no error, it just doesn't set it. I also tried the registry trick above with no success.

  • crelke Profile Picture
    75 on at

    @matow , I tried using the Set Resolution action too and it's not working. Is this a known issue? Is there a best practice to follow around handling different resolutions between your development machine and the VM that the unattended bot will be running on?

  • matow_MSFT Profile Picture
    Microsoft Employee on at

    @crelke Checking on more specific recommendations - in general would recommend testing with the same desktop resolution and/or web browser window size as the VM. Are you encountering similar issues with scrolling/element visibility with unattended?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi
    We encounter same issue we have a application that cant be done becource the screen size is to low and many objects it not visible on it.
    I have tryed alot of difrent ways to fix this and nothing helps. The set Screen Resolution is not working becource it cant set it when it does not have the size available.
    My theory is becource it connects with RDP with the size setting 1024x768 it will be stuck here.
    Take a look at the part of the log below

    {"eventDataSchemaVersion":"1.0","schemaVersion":"1.0","agentClientId":"7Jx/Y9e+D7jCvHIYBu5komXLj6+Zr/Og","correlationId":"952f13df-0848-4bd8-a8db-a4d8da583ede","clientSessionId":"","clientRequestId":"","component":"UIFlowService","eventType":"NotSpecified","traceLevel":"Warning","operationName":"NamedPipeServer.ListenAsync","eventTimestamp":"2021-02-25T07:15:19.0798765Z","durationInMilliseconds":"-1","exception":"System.Threading.Tasks.TaskCanceledException: A task was canceled.\r\n at Microsoft.Flow.RPA.Common.RpcOverNamedPipes.NamedPipeBase.<ExecuteWithTimeoutAsync>d__35.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Flow.RPA.Common.RpcOverNamedPipes.NamedPipeServer.<ConnectPipeAsync>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Flow.RPA.Common.RpcOverNamedPipes.NamedPipeBase.<ConnectAsync>d__41.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Flow.RPA.Common.RpcOverNamedPipes.NamedPipeBase.<EnforceInitializationAsync>d__42.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at Microsoft.Flow.RPA.Common.RpcOverNamedPipes.NamedPipeBase.<ListenAsync>d__44.MoveNext()","message":"Failure while reading from Named Pipe 'NativeHost_447e7ad7-becf-4b28-ac3a-a24e1825a6d1' (isServerEnd 'True')","eventData":{"osInfo":{"name":"Microsoft Windows NT 6.2.9200.0","version":"Microsoft Windows 6.2.9200","architecture":"Win32NT"},"executionInfo":{"sessionId":0,"processName":"UIFlowService","threadId":4,"contextId":0},"machineInfo":{"screenResolution":"1024x768","processorCount":"4","netVersion":"4.0.30319.42000","windowsProductName":"Windows Server 2019 Standard"},"httpStatusCode":0,"agentVersion":"2.4.63.21036"},"roleInfo":{}}

    The Gateway and Power Automate Desktop is up to date.

    I have tryed on a non virtual Windows 10 PC this encouter same issue aswell.

     

    Hope you can fix this maby with the option to set the Screen Resolution on the Gateway instead so it will connect with that on the RDP

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard