ERROR_INVALID_LOGON_TYPE - 1367 (0x557)
A logon request contained an invalid logon type value.
Updated: Feb 21, 2026
Technical Meaning
The ERROR_INVALID_LOGON_TYPE error code, with the numeric value of 1367 or the hexadecimal representation 0x557, indicates that a logon request was processed but contained an invalid logon type. This error typically arises in scenarios where the system expects a specific type of logon (such as interactive, network, batch, etc.) and receives a different or unsupported type.
Error Details
This error is indicative of a parameter validation failure during the authentication process. The logon type specified in the request does not match any supported types recognized by the system. This can occur due to incorrect usage of API functions such as LogonUser or WNetAddConnection2, where the logon type parameter is either missing, invalid, or incorrectly set.
Usage Context
The error context is primarily related to user authentication and session management within a Windows environment. It can be encountered in various scenarios, including but not limited to:
- Attempting to authenticate a user with an unsupported logon type.
- Using deprecated or non-standard logon types.
- Incorrectly configuring security settings that affect the logon process.
Developer Interpretation
Developers should ensure that when making API calls for authentication, they provide valid and supported logon types. The common logon types include LOGON32_LOGON_INTERACTIVE, LOGON32_LOGON_NETWORK, LOGON32_LOGON_BATCH, etc., as defined in the Windows API documentation. Developers must validate input parameters to avoid this error.
Related Errors
- ERROR_INVALID_PARAMETER (1409, 0x571): A generic error indicating that one or more of the supplied parameters are invalid.
- ERROR_LOGON_FAILURE (1326, 0x526): The user name or password is incorrect.
FAQ
Q: What does ERROR_INVALID_LOGON_TYPE mean?
A: It indicates an invalid logon type was used in a logon request. Ensure the correct logon type is specified when making API calls for authentication.
Q: How can I resolve this error?
A: Verify that the logon type parameter is correctly set and matches one of the supported types as defined by the Windows API documentation.
Summary
The ERROR_INVALID_LOGON_TYPE error code highlights a validation failure in the logon process due to an invalid logon type. Developers should ensure they use valid parameters when making authentication requests to avoid this issue.