
You need a Power Automate Process Plan plus the Unattended RPA add-on assigned to your environment
The target machine must be Windows 10/11 or Server, joined to Azure AD (Entra ID) or Hybrid AD, and have Remote Desktop Users permissions
Ensure no active or locked user sessions exist when running unattended flows
In Power Automate portal → go to Data → Connections → New connection → search for Desktop flows.
For unattended mode, select:
Connect with username and password
Choose the Entra ID-based account registered on the machine (or local account)
Fill in machine name and credentials
Don't use Connect with Sign-in — that only supports attended scenarios
If your tenant enforces MFA or can't bypass password prompts, you can opt for CBA with Entra ID.
On the machine, you must enable:
RDP with Entra ID for app ID a4a365df‑50f1‑4397‑bc59‑1a1564b8bb9c
Suppress consent prompt for that App ID
This is preview functionality and needs testing.
If you encounter the error MSEntraMachineAlwaysPromptingForPassword:
This often arises due to an RDP security policy prompting for passwords.
Resolution:
Set registry key:
HKLM\SOFTWARE\WOW6432Node\Microsoft\Power Automate Desktop\Service\UseRdsAadAuthentication = 1
Disable Always prompt for password upon connection in Group Policy or registry
Go to Monitor → Machines in Power Automate portal.
Select your machine and click Settings.
Enable:
Reuse sessions (optional but helpful)
Use a cloud (instant/scheduled) flow.
Add the Run a desktop flow action.
It should allow selecting your connection (with machine & credentials).
Set Run mode to Unattended
If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
Regards,
Riyaz