Skip to content

Commit 534b7ec

Browse files
author
Simonx Xu
authored
Merge pull request #8190 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/SupportArticles-docs (branch main)
2 parents 1fc04fc + 6ebf6af commit 534b7ec

3 files changed

Lines changed: 40 additions & 13 deletions

File tree

support/power-platform/power-automate/desktop-flows/msentramachinealwayspromptingforpassword-error.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: Unattended Desktop Flow Run Fails with MSEntraMachineAlwaysPromptingForPassword
33
description: Solves an error that occurs when you run an unattended desktop flow in Microsoft Power Automate for desktop.
44
ms.author: moelaabo
5-
ms.reviewer: guco, alarnaud
5+
ms.reviewer: guco, alarnaud, johndund
66
ms.custom: sap:Desktop flows\Unattended flow runtime errors
7-
ms.date: 12/09/2024
7+
ms.date: 02/11/2025
88
---
99
# An unattended desktop flow run fails with the MSEntraMachineAlwaysPromptingForPassword error
1010

@@ -29,7 +29,29 @@ Your unattended desktop flow run fails with the "MSEntraMachineAlwaysPromptingFo
2929

3030
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.
3131

32-
## Resolution
32+
## Resolution 1: Use Microsoft Entra authentication for Remote Desktop with a user certificate
33+
34+
This resolution requires Power Automate for desktop version 2.50 or later and must be used when no [multifactor authentication (MFA) exception](~/power-platform/power-automate/administration/conditional-access-and-multi-factor-authentication-in-flow.md#details) can be granted to the desktop flow connection account.
35+
36+
For steps on how to set up Microsoft Entra certificate based authentication for Power Automate, see [Configure certificate-based authentication (preview)](/power-automate/desktop-flows/configure-certificate-based-auth).
37+
38+
## Resolution 2: Use Microsoft Entra authentication for Remote Desktop with a username and password
39+
40+
This resolution requires Power Automate for desktop version 2.49 or later. If you don't have MFA enabled for the account used by the desktop flows connection, you can set up Microsoft Entra authentication using a username and password instead.
41+
42+
1. Open the Registry Editor (regedit) with administrative privileges. Navigate to the following registry path, create a new DWORD-32 value with the name `UseRdsAadAuthentication`, and then set the value of `UseRdsAadAuthentication` to **1**.
43+
44+
|Registry path|Registry key| DWORD-32 value|
45+
|-------------|------------|---------------|
46+
|Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Power Automate Desktop\Service|`UseRdsAadAuthentication`|**1**|
47+
48+
2. [Hide the consent prompt dialog for a target device group](/power-automate/desktop-flows/run-unattended-desktop-flows#admin-consent-for-unattended-runs-using-cba-or-sign-in-credentials-with-nla-preview).
49+
50+
3. Restart the Power Automate service.
51+
52+
4. Use a Microsoft Entra ID connection with username and password credentials. Note that an MFA exception is required for this account.
53+
54+
## Resolution 3: Disable fPromptForPassword
3355

3456
To solve this issue, check the group policy setting on your machine.
3557

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
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.
4-
ms.reviewer: cefriant, kenseongtan, guco, johndund
5-
ms.date: 01/15/2024
4+
ms.reviewer: cefriant, kenseongtan, guco, johndund, alarnaud
5+
ms.date: 02/11/2025
66
ms.custom: sap:Desktop flows\Unattended flow runtime errors
77
---
88
# Error code occurs when running an attended or unattended desktop flow
@@ -28,6 +28,7 @@ _Original KB number:_   4555406
2828
|UnattendedUserSessionDisconnected|400|Unattended|For more information about this error code, see [UnattendedUserSessionDisconnected](troubleshoot-desktop-flow-run-queue-errors.md#unattendedusersessiondisconnected).|
2929
|UnattendedUserSessionLocked|400|Unattended|For more information about this error code, see [UnattendedUserSessionLocked](troubleshoot-desktop-flow-run-queue-errors.md#unattendedusersessionlocked).|
3030
|SessionNotFound|400|Unattended|The Windows session on the machine for the given run can't be found. This issue can occur in the following cases:<br>- The machine reboots during the run.<br>- You're using a virtual machine that was cloned after installing Power Automate. If it was cloned after the installation and was registered, delete your machine from the Power Automate portal and re-register the machine.|
31+
|SessionNotFoundAfterCreation|400|Unattended|The Windows session on the machine for the given run can't be found after the session is created. This issue can occur if the Power Automate service ([UIFlowService](/power-automate/desktop-flows/troubleshoot#change-the-on-premises-service-account)) doesn't have the rights to enumerate remote sessions. To solve this issue, ensure the account running the Power Automate service (UIFlowService) is in the "Remote Desktop Users" group and not removed by group policy.|
3132
|TooManyActiveSessions|400|Unattended|Windows Server only.</br>You need to sign out at least one active session on the machine.|
3233
|SessionHasLoggedOff|400|Unattended|To solve this issue, see [SessionHasLoggedOff occurs during a desktop flow run connected with the cloud](session-has-logged-off-troubleshooting.md).|
3334
|SessionHasLoggedOffWithMaxIdleTime |400|Unattended|To solve this issue, see [SessionHasLoggedOffWithMaxIdleTime occurs during a desktop flow run](desktop-flow-max-session-duration-error.md).|
@@ -37,7 +38,7 @@ _Original KB number:_ &nbsp; 4555406
3738
|UnattendedUnsupportedWithOldConnection|403|Unattended|You need to create a new connection on the portal.|
3839
|RDPIsNotEnabled|400|Unattended|You need to enable Remote Desktop on the machine.|
3940
|UIFlowAlreadyRunning|429|Attended</br>Unattended|A desktop flow is already running on the machine. You need to wait for its completion. For more information about this error code, see [UIFlowAlreadyRunning](troubleshoot-desktop-flow-run-queue-errors.md#uiflowalreadyrunning).|
40-
|AadLogonFailure|400|Unattended|You need to disable Network Level Authentication (NLA) on the machine if you want to use Microsoft Entra credentials.|
41+
|MSEntraLogonFailure|400|Unattended|To resolve this issue, see [Desktop flows run failed with the MSEntraLogonFailure error code](ui-flows-run-failed-with-aadlogonfailure-error.md).|
4142
|Win10AlreadyHasActiveSession|400|Unattended|Windows 10 only. You need to sign out from the active session on the machine.|
4243
|UIFlowAgentNotAvailable|400|Attended</br>Unattended|You need to confirm that the service uiflowservice is up and running on your machine. If you have the following error when trying to start uiflowservice, see [Desktop flows failure](https://support.microsoft.com/help/4564550/):</br>**Windows could not start the UIFlowService service on Local Computer. Error 1069: The service did not start due to a logon failure**|
4344
|UnableToCallCrlEndpoint|400|Attended</br>Unattended|You need to ensure the revocation list for the certificates can be checked. Ensure that the CRL services aren't blocked on the target machine. The services that must be contacted are listed in this article: [Limits for automated, scheduled, and instant flows](/power-automate/limits-and-config#ui-flows-required-services)|

support/power-platform/power-automate/desktop-flows/ui-flows-run-failed-with-aadlogonfailure-error.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
title: Desktop flows run failed with AadLogonFailure
3-
description: Provides a resolution for an issue where desktop flows run failed with the AadLogonFailure error code.
4-
ms.reviewer: fredg, johndund
2+
title: Desktop flows run failed with MSEntraLogonFailure
3+
description: Provides a resolution for an issue where desktop flows run failed with the MSEntraLogonFailure error code.
4+
ms.reviewer: fredg, johndund, alarnaud
55
author: QuentinSele
66
ms.author: quseleba
7-
ms.date: 11/20/2023
7+
ms.date: 02/08/2025
88
ms.custom: sap:Desktop flows\Power Automate for desktop errors
99
---
10-
# Desktop flows run failed with the AadLogonFailure error code
10+
# Desktop flows run failed with the MSEntraLogonFailure error code
1111

1212
This article provides a resolution to solve the unattended desktop flows run failure issue.
1313

@@ -16,13 +16,17 @@ _Original KB number:_ &nbsp; 4555446
1616

1717
## Symptoms
1818

19-
Your unattended desktop flows run failed with the error code **AadLogonFailure**.
19+
Your unattended desktop flows run failed with the error code **MSEntraLogonFailure**.
2020

2121
## Cause
2222

2323
Desktop flows failed to validate your Microsoft Entra credentials on the machine.
2424

25-
## Resolution
25+
## Resolution for Power Automate for desktop version 2.49 or later
26+
27+
You need to [configure Microsoft Entra authentication for Remote Desktop](/power-automate/desktop-flows/run-unattended-desktop-flows#admin-consent-for-unattended-runs-using-cba-or-sign-in-credentials-with-nla-preview).
28+
29+
## Resolution for Power Automate for desktop version 2.48 or earlier
2630

2731
You need to disable Network Level Authentication (NLA) on the machine.
2832

0 commit comments

Comments
 (0)