Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

The WinAutomation user agent could not be found. Ensure that WinAutomation version 9.2.1 or greater is installed and configured correctly - UI flow

I am using winautmation version in the desktop used for unattended automation. When i run the workflow using attended mode it all works like charm. But when i try to run the workflow with unattended mode i get the following error


The WinAutomation user agent could not be found. Ensure that WinAutomation version 9.2.1 or greater is installed and configured correctly and that processes can be run manually.

Community Support
Community Support

Hi @achyutbiz ,


I have made a test on my side and hope the links below could help:


Best Regards,



Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



Thanks for the prompt response. I tried the command as per your suggestion but i got the below error

[SC] CreateService FAILED 1073:

The specified service already exists.


To handles this issue. I tried to remove the service and recreated again, no luck. same issue as below


The WinAutomation user agent could not be found. Ensure that WinAutomation version 9.2.1 or greater is installed and configured correctly


I also tried re-installing winautomation in default (C:) drive instead of D drive. No luck. same error

Even i am facing the same issue.Please help me on this.




Same issue. Run mode "Attended" works fine. Run Mode "UnAttended" with the user logged out and no active host sessions does not.

AzureVM - Win10 version 2004 OS Build 19041.388
WinAutomation Version

WinAutomation service is running

Process Run Policy 

If you are logged in and the worksation is locked:
Set to Unlock & Start Process
IF you are not logged in:
Set to Login & Start Process
If the physical screen of the worksation is not available:
Set to Start Process in Non-Interactive Mode

Please advise.

Hi All,


I did tried multiple ways to resolve this issue. One approach which helped to overcome this bottleneck is,  instead of desktop recording, I tried to invoke PowerShell scripts by connecting remote machine {e.g. i can connect multiple servers to check its storage size and update the content in SharePoint List). I did followed the same steps except replacing the recording stuffs in PowerShell .


I am still waiting for a solution for desktop recording as PowerShell scripts cannot be used for all desktop related automation.


Hope the PowerShell script approach might help for many use cases, especially infra operations and monitoring stuffs

During each WinAutomation Unattended attempt that I receive the error message "The WinAutomation user agent could not be found. Ensure that WinAutomation version 9.2.1 or greater is installed and configured correctly - UI flow" the Windows event log shows a login Audit Failure (EventID 4625) under the caller process name C:\Program Files (x86)Microsoft UI flows\UIFlowService.exe. Is the UIFlowService passing authentication to WinAutomation and does it work for Unattended? Is someone else able to verify?

Hi s3tst,


as i said earlier, unattended flow is working if there is no recording actions (both UI flow recorder and winautomate recorder).

i used powershell for monitoring and update in SharePoint online. It is all working fine.




I also tried another option. I wrote a script to login to SAP console and run a tcode. It is also working fine in unattended mode but if you try to record something, there comes the issue and i strongly doubt it is a bug in Microsoft integration with WinAutomation and they need to resolve this ASAP for customers to use. Only after buying WinAutomation from softomotive, Microsoft RPA is usable to some extent. Otherwise it was useless with a half baked UI flow recorder  till date  with useless samples like calculator function recording.


Intermittent solution for now if you are able to achieve what you are recording with a PowerShell or any other script which is supported by WinAutomation, then it works unattended. Also script works very fast when compared to recording,





I tried this today. I also have a quite large SAP automation re-built using WinAutomation. Attended mode works like a charm. I tried to switch to unattended mode and I am facing the same error. Has anyone heard anything back from MS regarding this issue?

Hey @achyutbiz and others!


Good news! The reason why WinAutomation is failing in this scenario, is that, as per my conversation with Microsoft, "unattended starts a user session on the machine, which itself starts other processes within that user session as well. It turns out that this error can happen UI flows desktop attempts to call WinAutomation process happens before the WinAutomation user agent starts in the user session".


To workaround this issue as long as this is not fixed, recommendation is to put "Delay" action before actually calling WinAutomation action inside your UI flow. The "Delay" action is GA starting today, so you should find it in your tenant already:




Add it, set delay to eg. 15 seconds and try then. Works fine for me!




Helpful resources

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,246)