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 / Flow Cannot Connect to...
Power Automate
Unanswered

Flow Cannot Connect to Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by 16

Trying to make a PAD flow that is scheduled to run daily. Have a gateway setup and have the flow setup and running in PAD manually. I setup a scheduled cloud flow and try to add a "Desktop Flow" to it. It has you enter a gateway, domain/user, and password. I keep getting this error no matter what I enter for the "Domain and username" field

Wedge_0-1608680287414.png

 

The (slightly out of date) documentation for this field online says


Domain and Username: Provide your device account. You can use a local account by using the name of the user (for example, “MACHINENAME\User” or “local\User”), or an Active Directory account such as “DOMAIN\User”.

 

And I've tried all kinds of combinations of the machine name\user, domain\user, and machine name.domain\user and it can't seem to connect at all.

 

I don't know if the fact I am logged into one machine and remoting onto another is causing some confusion here? The machine I am remoting into is the one with PAD installed that I am trying to schedule it to run this on. I also don't have admin privileges, so don't know if that would cause this error?

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

    In Task Manager -> Services tab on the target machine, is UIFlowService running? Related troubleshooting steps if it's not (may need admin privileges / IT assistance): Service 'UIFlowService' (UIFlowService) failed to ... - Power Platform Community (microsoft.com)

  • Wedge Profile Picture
    16 on at

    As far as I can tell it looks like yes?

    Wedge_0-1608834368449.png

     

  • Wedge Profile Picture
    16 on at

    If anyone could provide a better example than the documentation gives on how to specify your machine within an Active Directory environment, that would be helpful as well. The documentation just says "MACHINENAME\User" or "DOMAIN\User" and neither of those work. The error message is not helpful either, because it displays this same error even if I enter nonsense in the fields.


    I think I need to be able to specify a certain machine and user within the active directory domain, but I'm not certain how to format this. 

  • matow_MSFT Profile Picture
    Microsoft Employee on at

    @Wedge It'd typically be DOMAIN\User with your domain or "~\User" if there's no domain.

     

    @john-dund Are there any additional troubleshooting steps you'd recommend for this issue?  

  • Wedge Profile Picture
    16 on at

    So, the documentation is not really explicit enough that you need an On-Premise Gateway installed on the machine you are trying to automate from. It does say "You need the on-premise gateway for your device...", but every other purpose I've seen the On-Premise Gateway is used for, it's typical to have it installed on a dedicated non-user machine. I had assumed this just meant it needs to be accessible in the same way it is for other uses, because you can see your existing gateway on the selection list. It's really confusing that you need an entirely separate local Gateway installation specifically for PAD integration into flows.

  • Swatiba Profile Picture
    24 on at

    To find the Domain name,

    Go to command Prompt and type "whoiam", this will give you the Domain\username.

    For Password: Enter the password for this domain and username.

  • CU25052337-1 Profile Picture
    2 on at

    Swatiba's suggestion solved my issue similar to the post owner. Thank you Swatiba! However, the correct command to use in the cmd window is "whoami"

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