ERROR_DUPLICATE_PRIVILEGES - 311 (0x137)
Duplicate privileges were specified for the token.
Updated: Feb 21, 2026
Technical Meaning
The ERROR_DUPLICATE_PRIVILEGES error code indicates that duplicate privileges were specified for a security token. This typically occurs during the process of creating or modifying an access token, where one or more privileges are being duplicated.
Error Details
This error is specific to operations involving security tokens and their associated privileges in the Windows operating system. It suggests that there was an attempt to add a privilege to a token that already contains that same privilege, resulting in a duplicate entry.
Usage Context
The ERROR_DUPLICATE_PRIVILEGES error can be encountered when working with security tokens, such as during the creation or modification of access tokens for processes or threads. This error is relevant to developers and administrators who are involved in managing user and process privileges within the Windows environment.
Developer Interpretation
When this error occurs, it indicates that there was an attempt to add a privilege to a token that already contains that same privilege. The developer should ensure that all privileges being added to a security token are unique and not duplicated. This can be achieved by carefully validating the list of privileges before attempting to modify the token.
Related Errors
ERROR_PRIVILEGE_NOT_SET(1345, 0x54D)ERROR_PRIVILEGE_ALREADY_ENABLED(2267, 0x8C3)ERROR_PRIVILEGE_NOT_FOUND(1349, 0x54F)
FAQ
Q: What does the ERROR_DUPLICATE_PRIVILEGES error mean?
A: It indicates that duplicate privileges were specified for a security token.
Q: How can I prevent this error from occurring?
A: Ensure that all privileges being added to a security token are unique and not duplicated by carefully validating the list of privileges before modifying the token.
Summary
The ERROR_DUPLICATE_PRIVILEGES error code is specific to operations involving security tokens in Windows. It indicates an attempt to duplicate privileges within a token, which should be avoided by ensuring that all privileges added to a token are unique.