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
Go to Control Panel, and then select System and Security.
Select Allow remote access.
Disable Network Level Authentication and select OK.
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.
Open the Run dialog box (Windows + R), type gpedit.msc, and select OK.
Navigate to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security.
On the right panel, find and double-click Require user authentication for remote connections by using Network Level Authentication.
If the setting is enabled, work with your system administrator to disable it.