Skip to content

Commit c8383a7

Browse files
authored
Merge pull request #9263 from MicrosoftDocs/lucciz01-migrate-SMC-article--to-LMC
AB#6424: Update troubleshoot-session-creation-errrors.md
2 parents 836714c + c5e9a00 commit c8383a7

File tree

2 files changed

+79
-11
lines changed

2 files changed

+79
-11
lines changed

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, alarnaud, ermathon
5-
ms.date: 05/29/2025
5+
ms.date: 07/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
@@ -23,6 +23,7 @@ _Original KB number:_   4555406
2323
|AttendedUserSessionNotActive<br>AttendedUserNotLoggedIn|400|Attended|Check that you're logged in with the correct user and that the session is unlocked on the machine. For more information about the error codes, see [AttendedUserSessionNotActive](troubleshoot-desktop-flow-run-queue-errors.md#attendedusersessionnotactive) and [AttendedUserNotLoggedIn](troubleshoot-desktop-flow-run-queue-errors.md#attendedusernotloggedin).|
2424
|SessionCreationError|400|Unattended|We couldn't create the session on the machine for an unknown reason. To solve this issue, see [Troubleshoot session creation error codes for an unattended desktop flow run](troubleshoot-session-creation-errrors.md#sessioncreationerror).|
2525
|SessionCreationErrorWithThirdPartyCredentialProvider|400|Unattended|To solve this issue, see [Troubleshoot session creation error codes for an unattended desktop flow run](troubleshoot-session-creation-errrors.md#sessioncreationerrorwiththirdpartycredentialprovider).|
26+
|SessionCreationUserPromptedForCredentialsAfterConnection|400|Unattended|To solve this issue, see [Troubleshoot session creation error codes for an unattended desktop flow run](troubleshoot-session-creation-errrors.md#sessioncreationuserpromptedforcredentialsafterconnection).|
2627
|SessionCreationWinLogonFailure|400|Unattended|We can't create a Windows session to run your unattended desktop flow. You need to restart your machine.|
2728
|SessionExistsForTheUserWhenUnattended|400|Unattended|Check that you aren't logged in with the same user (regardless of the state of the session) on the machine. For more information about this error code, see [SessionExistsForTheUserWhenUnattended](troubleshoot-desktop-flow-run-queue-errors.md#sessionexistsfortheuserwhenunattended).|
2829
|UnattendedUserSessionDisconnected|400|Unattended|For more information about this error code, see [UnattendedUserSessionDisconnected](troubleshoot-desktop-flow-run-queue-errors.md#unattendedusersessiondisconnected).|

support/power-platform/power-automate/desktop-flows/troubleshoot-session-creation-errrors.md

Lines changed: 77 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,31 @@ title: Session creation error codes in unattended desktop flow runs
33
description: Solves error codes related to session creation during unattended desktop flow runs in Power Automate.
44
author: johndund
55
ms.author: johndund
6-
ms.date: 04/29/2025
7-
ms.reviewer: madiazor, guco, fredg
6+
ms.date: 07/11/2025
7+
ms.reviewer: madiazor, guco, fredg, alarnaud
88
ms.custom: sap:Desktop flows\Unattended flow runtime errors
99
---
10-
# Resolve session creation error codes for an unattended desktop flow run
10+
# Resolve session creation errors for an unattended desktop flow run
1111

12-
This article provides background and potential solutions to the `SessionCreationError` and `SessionCreationErrorWithThirdPartyCredentialProvider` error codes that might occur during an unattended desktop flow run in Microsoft Power Automate.
12+
This article provides background and potential solutions for session creation errors that might occur during an unattended desktop flow run in Microsoft Power Automate.
1313

1414
_Applies to:_ &nbsp; Power Automate
1515

1616
## Symptoms
1717

18-
Your [unattended desktop flow run](/power-automate/desktop-flows/run-unattended-desktop-flows) might fail with the `SessionCreationError` or `SessionCreationErrorWithThirdPartyCredentialProvider` error code.
19-
20-
## Cause
21-
22-
When an unattended session is run, Power Automate attempts to create a remote desktop (RDP) session on the target machine. If this session creation fails, you might receive one of the following error codes:
18+
Your [unattended desktop flow run](/power-automate/desktop-flows/run-unattended-desktop-flows) might fail with one of the following error codes:
2319

2420
- [SessionCreationErrorWithThirdPartyCredentialProvider](#sessioncreationerrorwiththirdpartycredentialprovider)
21+
- [SessionCreationUserPromptedForCredentialsAfterConnection](#sessioncreationuserpromptedforcredentialsafterconnection)
2522
- [SessionCreationError](#sessioncreationerror)
2623

24+
## Cause
25+
26+
When an unattended session is run, Power Automate attempts to create a Remote Desktop Protocol (RDP) connection on the target machine. If this session creation fails, you might receive one of the error codes.
27+
2728
## SessionCreationErrorWithThirdPartyCredentialProvider
2829

29-
This error code occurs because third-party software interferes with Power Automate's ability to create a session on the machine. Power Automate doesn't support some third-party credential providers.
30+
This error code occurs because third-party software interferes with Power Automate's ability to create a session on the machine. Power Automate doesn't support some third-party credential providers, or might experience conflicts depending on their configuration.
3031

3132
### Resolution
3233

@@ -44,6 +45,72 @@ Each subkey represents an installed credential provider. The following table lis
4445
| SIDCredentialProvider | 36ED98C6-02FF-47e8-B7FE-957A411CEA16 |
4546
| CGWinLogon | BDA6DA5B-7E7E-482C-9B3E-67AFF0C838C0 |
4647

48+
## SessionCreationUserPromptedForCredentialsAfterConnection
49+
50+
This error code occurs when the machine prompts for credentials after the RDP connection is established. Power Automate expects credentials to be handled during the connection setup, so this unexpected prompt might cause the flow to fail.
51+
52+
### Resolution
53+
54+
The resolution steps depend on the machine's setup. Follow the instructions to determine the setup and apply the appropriate solution:
55+
56+
[!INCLUDE [Registry important alert](../../../includes/registry-important-alert.md)]
57+
58+
1. Open **Command Prompt** and run `dsregcmd /status`.
59+
60+
2. In the output under the **Device State** section, check the values for `AzureAdJoined` and `DomainJoined`.
61+
62+
**If `AzureAdJoined: YES` and `DomainJoined: NO`:**
63+
64+
1. Open **Registry Editor** by pressing Windows+<kbd>R</kbd>, typing `regedit`, and pressing <kbd>Enter</kbd>.
65+
66+
2. Navigate to the following path:
67+
68+
`Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services`
69+
70+
3. Check if the `Terminal Services` key contains a `fPromptForPassword` subkey:
71+
72+
- If it exists and is set to **1**, contact your IT department to disable the "Always prompt for password upon connection" policy. After the policy is updated, force a policy refresh on the machine.
73+
- If `fPromptForPassword` doesn't exist, navigate to:
74+
75+
`Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp`
76+
77+
Look for the `fPromptForPassword` DWORD. If it exists, set its value to **0**. If it doesn't exist, create it and set its value to **0**.
78+
79+
**For other machine configurations:**
80+
81+
1. Open **Registry Editor** by pressing Windows+<kbd>R</kbd>, typing `regedit`, and pressing <kbd>Enter</kbd>.
82+
83+
2. Navigate to the following path:
84+
85+
`Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services`
86+
87+
3. Check if the `Terminal Services` key contains the following values:
88+
89+
- `fPromptForPassword` = **1**
90+
- `SecurityLayer` = **0**
91+
- `UserAuthentication` = **0**
92+
93+
If all three values exist, contact your IT department to update one of these values:
94+
95+
- Set `fPromptForPassword` to **0**, or
96+
- Set `SecurityLayer` to **1** or **2**, or
97+
- Set `UserAuthentication` to **1**.
98+
99+
If one or more values are missing:
100+
101+
- Choose one of the missing values based on your requirements.
102+
- Navigate to:
103+
104+
`Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp`
105+
106+
- Update (or create if not present) the selected value:
107+
108+
- Set `fPromptForPassword` to **0**, or
109+
- Set `SecurityLayer` to **1** or **2**, or
110+
- Set `UserAuthentication` to **1**.
111+
112+
3. Restart the machine after making registry changes.
113+
47114
## SessionCreationError
48115

49116
This error code occurs when a session creation fails for an unknown reason.

0 commit comments

Comments
 (0)