Skip to content

Commit 74f9498

Browse files
authored
Merge pull request #7818 from MicrosoftDocs/main
Auto push to live 2024-12-09 18:00:03
2 parents 3ca86bf + c32499b commit 74f9498

4 files changed

Lines changed: 50 additions & 1 deletion

File tree

Loading
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: Unattended Desktop Flow Run Fails with MSEntraMachineAlwaysPromptingForPassword
3+
description: Solves an error that occurs when you run an unattended desktop flow in Microsoft Power Automate for desktop.
4+
ms.author: moelaabo
5+
ms.reviewer: guco, alarnaud
6+
ms.custom: sap:Desktop flows\Unattended flow runtime errors
7+
ms.date: 12/09/2024
8+
---
9+
# An unattended desktop flow run fails with the MSEntraMachineAlwaysPromptingForPassword error
10+
11+
This article provides a resolution for an error that occurs when you run an unattended desktop flow in Microsoft Power Automate for desktop.
12+
13+
## Symptoms
14+
15+
Your unattended desktop flow run fails with the "MSEntraMachineAlwaysPromptingForPassword" error code (formerly "AADMachineAlwaysPromptingForPassword").
16+
17+
```jsonc
18+
{
19+
"error":{
20+
"code": "MSEntraMachineAlwaysPromptingForPassword",
21+
"message": "Could not create unattended session with these credentials."
22+
}
23+
}
24+
```
25+
26+
:::image type="content" source="media/msentramachinealwayspromptingforpassword-error/msentramachinealwayspromptingforpassword.png" alt-text="Screenshot of the error code shown in the Body section of the Run a flow built with Power Automate for desktop page.":::
27+
28+
## Cause
29+
30+
Power Automate for desktop can't validate your Microsoft Entra ID (formerly Azure Active Directory) credentials on the machine. This issue is typically caused by a group policy setting on your machine.
31+
32+
## Resolution
33+
34+
To solve this issue, check the group policy setting on your machine.
35+
36+
1. Press the Windows key+<kbd>R</kbd> to open the **Run** dialog.
37+
1. Type **gpedit.msc** and press <kbd>Enter</kbd> to open the Local Group Policy Editor.
38+
1. Navigate to **Computer Configuration** > **Administrative Templates** > **Windows Components** > **Remote Desktop Services** > **Remote Desktop Session Host** > **Security**.
39+
1. Look for the **Always prompt for password upon connection** setting.
40+
41+
- If the setting is enabled, work with your IT department to disable the policy for that machine.
42+
43+
> [!NOTE]
44+
> This value is also reflected in the registry at **Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services**. If the **fPromptForPassword** DWORD value for the **Terminal Services** key is set to **1**, the setting is enabled, and you need to work with your IT department to disable it (simply changing the registry value is generally not sufficient, as it might be reverted.)
45+
46+
- If the **Always prompt for password upon connection** setting isn't enabled but you receive the error code, type **regedit** in the **Run** dialog to open the Registry Editor. In the Registry Editor, navigate to the **Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp** registry key. Then, look for the **fPromptForPassword** DWORD and set it to **0**. If the DWORD doesn't exist, create it and set its value to **0**.

support/power-platform/power-automate/desktop-flows/troubleshoot-errors-running-attended-or-unattended-desktop-flows.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Error code occurs when running an attended or unattended desktop flow
33
description: Provides mitigation steps for the error codes that occur when running attended or unattended desktop flows.
44
ms.reviewer: cefriant, kenseongtan, guco, johndund
5-
ms.date: 10/08/2024
5+
ms.date: 12/09/2024
66
ms.custom: sap:Desktop flows\Unattended flow runtime errors
77
---
88
# Error code occurs when running an attended or unattended desktop flow
@@ -44,6 +44,7 @@ _Original KB number:_ &nbsp; 4555406
4444
|ConnectionTimeout|404|Attended</br>Unattended|This request operation didn't receive a reply within the configured timeout.</br> Check that your machine is online and can communicate with the required Power Automate endpoints.|
4545
|EndpointDoNotExist|404|Attended</br>Unattended|The endpoint wasn't found.</br>Register your machine again and schedule new runs.|
4646
|GroupIsEmpty|400|Attended</br>Unattended|The machine group is empty.</br> Add machines to the group, then reschedule new runs.|
47+
|MSEntraMachineAlwaysPromptingForPassword|400|Unattended|For more information about this error code, see [An unattended desktop flow run fails with the MSEntraMachineAlwaysPromptingForPassword error](msentramachinealwayspromptingforpassword-error.md).|
4748
|NoCandidateMachine|400|Attended</br>Unattended|The run has exceeded the queue waiting time limit.</br> Consider allocating more machines or spreading desktop flow runs to optimize wait time in the queue.|
4849
|DesktopFlowsActionThrottled|429|Attended</br>Unattended|The desktop flow action failed because of throttling. This error code appears when too many desktop flows use the same connection. Check your connection usage and assign your desktop flows to multiple connections.|
4950
|DesktopFlowsActionTimeout|400|Attended</br>Unattended|The execution of the desktop flow action exceeded maximum duration.</br> Increase the time-out value that's set on the action or split the desktop flow into several shorter desktop flows.|

support/power-platform/power-automate/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@
170170
href: desktop-flows/temporary-profile-error-machine-registration.md
171171
- name: 'UnallowedTenantForConnectWithSignIn or connection errors when using "connect with sign-in"'
172172
href: desktop-flows/troubleshoot-unallowed-tenant-for-connect-with-sign-in.md
173+
- name: Unattended desktop flow fails with MSEntraMachineAlwaysPromptingForPassword
174+
href: desktop-flows/msentramachinealwayspromptingforpassword-error.md
173175
- name: Flow creation
174176
items:
175177
- name: Can't find Excel Online table in Microsoft Flow

0 commit comments

Comments
 (0)