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 / Run a flow built with ...
Power Automate
Unanswered

Run a flow built with Power Automate for desktop in specific machine (local computer) to Connected RDP windows machine.

(0) ShareShare
ReportReport
Posted on by

Run a flow built with Power Automate for desktop in specific machine (local computer) to Connected RDP windows machine.


I beleive recording being generated is machine specific when I run the record flow on machine it's perfectly working fine but when I trigger the same flow to execute from cloud flow it's not working because eits not able to identify locators even though it's able to launch the application.

I have tried multiple things like

recording on remote machine itself but it works only when I am logged in and connected to machine and doesn't work when I try in unattended mode. By throwing error valid RDP connection not available.

Recording on local machine in same application works on local machine where it's recorded but doesn't work on attended or unattended mode on RDP Machine connected to my env.

I beleive it records from the machine node like
local computer > application > button
Local computer > RDP machine > application > button.

And I tried to look on documentation but could find any way where I can change the hierarchy of locator for example from above I want to make it like
Application > button

Where its not looking for specific rdp or local machine but for application.

Help is appreciated 🙏
Thanks & regards,
Lareb Shaikh

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Larebshaikh 

    Could you kindly clarify the functionality of your attended bot? Is it similar to initiating a cloud flow that triggers actions on your local machine, and if so, how does it establish a connection with your RDP machine? Does the bot automatically establish an RDP connection and wait for a period before beginning its tasks once the connection is established?

    Could you please elaborate on how you have configured the functionality of your bot in your specific case? If feasible, it would be helpful to provide screenshots with any sensitive information redacted for clarity.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀. If you'd like to appreciate me, please write a LinkedIn recommendation 🙏

  • larebshaikhecw Profile Picture
    8 on at

    hello @Deenuji ,

    i have created a cloud flow that i trigger manually which does nothing except initating a desktop flow on attended or un attended mode.

    what I want to achieve is:
    let's say I have two machine one is rdp system and one is my local computer.
    dekstop flow is created on my local computer which is getting triggered by cloude flow to run on rdp machine.


    when I record dektop flow on my local it creates element in local computer node for example 

    larebshaikhecw_0-1711366914825.png


    when I initiate cloud flow i gives me error stating window not found. ( Problem while executing action 'Click'. Click failed (failed to get window)

    Microsoft.Flow.RPA.Desktop.Modules.SDK.Extended.Exceptions.InternalActionException: Click failed (failed to get window) ---> Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.WindowNotFoundException: Exception of type 'Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.WindowNotFoundException' was thrown. )

    what I am trying is to make local computer ordinance as application so that instead of searhing for specific desktop it search for application only

    larebshaikhecw_1-1711367181729.png

     




     

  • larebshaikhecw Profile Picture
    8 on at

    @Deenuji  also I forgot to mention i have tried both unattended and unattanded mode unfortunately both gives me same error.

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Larebshaikh 

     

    For RDP/VM automation please install required agent then you can leverage recording option else you may end up with above error only.

     

    Install the agent from below URL and follow instructions

    Automate on virtual desktops - Power Automate | Microsoft Learn

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀. If you'd like to appreciate me, please write a LinkedIn recommendation 🙏

  • larebshaikhecw Profile Picture
    8 on at

    I have installed the agent but when I run after recording on vm in un attended mode it still throws me same error

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @larebshaikhecw 

    So is it working fine in attended mode? While you run your flow in attended mode, Did you open the RDP machine on your own or it will be opened through scripts?

     

    Could you please elaborate what you have done on the RDP connection establishment?
    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀. If you'd like to appreciate me, please write a LinkedIn recommendation 🙏

  • larebshaikhecw Profile Picture
    8 on at

    in attended mode I opened rdp on my own and it still doesn't work and throws error as 

    Problem while executing action 'PressButton'. The remote desktop was not found. \r\n \r\nMicrosoft.Flow.RPA.Desktop.Modules.SDK.Extended.Exceptions.InternalActionException: The remote desktop was not found. ---> Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.DesktopNotFoundException: The action requires a RDP client window but the window with selector ' > window[Name=\"**.**.**.****- Remote Desktop Connection\"]' is not a valid RDP client window. ---> Microsoft.Flow.RPA.Desktop.UIAutomation.RDP.Common.Exceptions.RdpClientWindowNotFoundException: Exception of type 'Microsoft.Flow.RPA.Desktop.UIAutomation.RDP.Common.Exceptions.RdpClientWindowNotFoundException' was thrown.\r\n   at Microsoft.Flow.RPA.Desktop.UIAutomation.Runtime.Router.RDPAutomationRuntimeRouter.GetClient(String connectionString)\r\n   at Microsoft.Flow.RPA.Desktop.UIAutomation.Runtime.Router.RDPAutomationRuntimeRouter.GetClientAndRuntime(String serverAddress, IRDPClient& client, IAutomationRuntimeProxy& runtime)\r\n   --- End of inner exception stack trace ---\r\n   at Microsoft.Flow.RPA.Desktop.UIAutomation.Runtime.Router.RDPAutomationRuntimeRouter.GetClientAndRuntime(String serverAddress, IRDPClient& client, IAutomationRuntimeProxy& runtime)\r\n   at Microsoft.Flow.RPA.Desktop.UIAutomation.Runtime.Router.RDPAutomationRuntimeRouter.Invoke(MethodInfo targetMethod, Object[] args)\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.Reflection.DispatchProxyGenerator.Invoke(Object[] args)\r\n   at generatedProxy_1.PressButtonInWindow(UIRuntimeElement )\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at Microsoft.Flow.RPA.Desktop.UIAutomation.Runtime.Router.UIAutomationRuntimeRouter.Invoke(MethodInfo targetMethod, Object[] args)\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.Reflection.DispatchProxyGenerator.Invoke(Object[] args)\r\n   at generatedProxy_2.PressButtonInWindow(UIRuntimeElement )\r\n--- End of remote exception stack trace ---\r\n   at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Proxy.RemoteAutomationRuntimeProxy.Invoke(MethodInfo targetMethod, Object[] args)\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.Reflection.DispatchProxyGenerator.Invoke(Object[] args)\r\n   at generatedProxy_2.PressButtonInWindow(UIRuntimeElement )\r\n   at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.UIAutomationActionBase.PerformAutomation(Action`2 action, UIControl control, Boolean logAction)\r\n   at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.PressWindowButton.Execute(ActionContext context)\r\n   --- End of inner exception stack trace ---\r\n   at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.PressWindowButton.Execute(ActionContext context)\r\n   at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)\r\n"
  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @larebshaikhecw 

     

    It appears that your RDP connection to your remote machine has not been established. If feasible, could you please record a video demonstrating how it functions in your attended mode?

     

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀. If you'd like to appreciate me, please write a LinkedIn recommendation 🙏

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Do I understand it correctly that you are trying to automate something that runs on your own machine but also automates a remote machine that you connect to via RDP? If so, are you sure the RDP connection is valid and connected to when your flows run? Is the name of the session the same?

     

    Also, does your flow actually open the RDP connection, or does it rely on it already being opened when the flow runs? 

    You also mentioned that it presumably doesn't work on other machines. What other machines have you tried it on?

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard