EPM - DLGSEC LastError 1385
176
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 15:51 PM
Symptom
An authentication attempt through an EPM dialog such as a "Confirm Elevation" dialog fails and there is this corresponding error in the vf_agent_srv.trace logs
ValidateProcessByCred: DLGSEC: ERROR: Logon attempt failed. LastError=1385
Environment
23.10;23.12 EPM EPM Console Windows 10, Windows 11
Cause
Error 1385 is a Microsoft error which means,
"Logon failure: the user has not been granted the requested logon type at this computer"
Reference https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--1300-1699-
There are two relevant user rights assignments:
- Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment
- "Access this computer from the network"
- "Deny access to this computer from the network"
Reference:
- https://learn.microsoft.com/en-us/azure/governance/policy/samples/guest-configuration-baseline-windows
You can check the configuration several ways (see A or B below):
A) Use gpresult command
- Open elevated command prompt and run command
gpresult /scope computer /h gpresult.html
- Then check: Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment
- Review the user rights for
- "Access the computer from the network"
- "Deny access to this computer from the network"
- Open elevated command prompt and run command
Secedit /export /areas USER_RIGHTS /cfg c:\temp\outputfile.txt
- Open the output file and check config for both of these rights:
- SeNetworkLogonRight
- SeDenyNetworkLogonRight
- Reference https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/secedit-export
Resolution
Summary of resolution:
- Ensure user who is attempting to enter credentials has the "Access this computer from the network" user right assignment.
- Check that there is not a "Deny access to this computer from the network" specifically preventing the user from having the right.
- Customer can resolve this by using a local GPO or domain GPO to configure the two user rights assignments
- Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment
- Configure "Access this computer from the network" so that the user is specified by name or group
- Ensure the user is not specified in "Deny access to this computer from the network"
- Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment
- Customer can resolve this by using Intune to configure the two user rights assignments.
- When using intune, the user rights assignments are named slightly differently
- ./Device/Vendor/MSFT/Policy/Config/UserRights/AccessFromNetwork
- ./Device/Vendor/MSFT/Policy/Config/UserRights/DenyAccessFromNetwork
- When using intune, the user rights assignments are named slightly differently