Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article provides background and potential solutions for session creation errors that might occur during an unattended desktop flow run in Microsoft Power Automate.
Applies to: Power Automate
Symptoms
Your unattended desktop flow run might fail with one of the following error codes:
- SessionCreationErrorWithThirdPartyCredentialProvider
- SessionCreationUserPromptedForCredentialsAfterConnection
- SessionCreationError
Cause
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.
SessionCreationErrorWithThirdPartyCredentialProvider
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.
Resolution
To resolve the issue, contact your administrator to uninstall the credential provider that Power Automate doesn't support.
You can find the full list of credential providers (many of which are built-in) on your machine in the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers
Each subkey represents an installed credential provider. The following table lists the credential providers that Power Automate currently doesn't support. If you have any of the following subkeys, work with your system administrator to uninstall the corresponding software.
Name | Subkey name |
---|---|
SailPoint Technologies Desktop Password Reset | 0094A34B-0BF0-4789-8B2D-8339E469D756 |
SIDCredentialProvider | 36ED98C6-02FF-47e8-B7FE-957A411CEA16 |
CGWinLogon | BDA6DA5B-7E7E-482C-9B3E-67AFF0C838C0 |
SessionCreationUserPromptedForCredentialsAfterConnection
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.
Resolution
The resolution steps depend on the machine's setup. Follow the instructions to determine the setup and apply the appropriate solution:
Important
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For protection, back up the registry before you modify it so that you can restore it if a problem occurs. For more information about how to back up and restore the registry, see How to back up and restore the registry in Windows.
Open Command Prompt and run
dsregcmd /status
.In the output under the Device State section, check the values for
AzureAdJoined
andDomainJoined
.If
AzureAdJoined: YES
andDomainJoined: NO
:Open Registry Editor by pressing Windows+R, typing
regedit
, and pressing Enter.Navigate to the following path:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Check if the
Terminal Services
key contains afPromptForPassword
subkey: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.
If
fPromptForPassword
doesn't exist, navigate to:Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
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.
For other machine configurations:
Open Registry Editor by pressing Windows+R, typing
regedit
, and pressing Enter.Navigate to the following path:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Check if the
Terminal Services
key contains the following values:fPromptForPassword
= 1SecurityLayer
= 0UserAuthentication
= 0
If all three values exist, contact your IT department to update one of these values:
- Set
fPromptForPassword
to 0, or - Set
SecurityLayer
to 1 or 2, or - Set
UserAuthentication
to 1.
If one or more values are missing:
Choose one of the missing values based on your requirements.
Navigate to:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
Update (or create if not present) the selected value:
- Set
fPromptForPassword
to 0, or - Set
SecurityLayer
to 1 or 2, or - Set
UserAuthentication
to 1.
- Set
Restart the machine after making registry changes.
SessionCreationError
This error code occurs when a session creation fails for an unknown reason.
Resolution
To solve the issue:
- Ensure that you can remote desktop to the machine from another machine on your network. If you're using Windows Server, you can try to remote desktop to "localhost" from the local machine itself when logged in as another account. If these actions fail, see General Remote Desktop connection troubleshooting.
- If you have a legal notice enabled for login, work with your system administrator to try disabling it. To see if the legal notice is activated, open Registry Editor and go to
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
. Iflegalnoticecaption
orlegalnoticetext
isn't empty, work with your system administrator to disable the legal notice. - Ensure that no third-party software is installed that might affect login or interfere with creating a remote desktop connection.
- If you use a domain account (DOMAIN\user) to connect, connectivity issues with the domain controller might prevent the session from opening correctly. Work with your system administrator to examine connectivity logs. If you're on a Microsoft Entra joined or Entra hybrid joined device, try using a UPN (
user@domain.com
). To see if you can use a UPN, go to Start > Run, and run the dsregcmd /status command. If you seeAzureAdJoined: YES
underDevice State
, try changing the user specified in the connection to theuser@domain.com
format.
Third-party information disclaimer
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.