Desktop flows run failed with the AadLogonFailure error code

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

Applies to:   Power Automate
Original KB number:   4555446

Symptoms

Your unattended desktop flows run failed with the error code AadLogonFailure.

Cause

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

Resolution

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

Disable NLA using the "System and Security" setting

  1. Go to Control Panel, and then select System and Security.

    Screenshot to select the System and Security option in the Control Panel.

  2. Select Allow remote access.

    Screenshot to select the Allow remote access option in the System and Security window.

  3. Disable Network Level Authentication and select OK.

    Screenshot to disable Network Level Authentication in the System Properties window.

Disable NLA using the Local Group Policy Editor

Note

The following steps show how to check if the policy setting is enabled. If NLA is required, work with your system administrator to disable this policy on the required machines.

To understand whether NLA is required by Group Policy on your computer, you can use the Local Group Policy Editor.

  1. Open the Run dialog box (Windows + R), type gpedit.msc, and select OK.

    Screenshot that shows how to open the Local Group Policy Editor by running gpedit.msc.

  2. Navigate to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security.

  3. On the right panel, find and double-click Require user authentication for remote connections by using Network Level Authentication.

  4. If the setting is enabled, work with your system administrator to disable it.