InvalidPasswordReason Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the reason why password validation failed.
public enum class InvalidPasswordReason
public enum InvalidPasswordReason
type InvalidPasswordReason =
Public Enum InvalidPasswordReason
- Inheritance
-
InvalidPasswordReason
Fields
Name | Value | Description |
---|---|---|
NoError | 0 | Validation passed. The password meets the computer or domain password requirements. |
PasswordTooShort | 1 | Validation failed. The password does not meet policy requirements because it is too short. |
PasswordTooLong | 2 | Validation failed. The password does not meet policy requirements because it is too long. |
PasswordNotComplexEnough | 3 | Validation failed. The password does not meet policy requirements because it is not complex enough. |
PasswordFilterError | 4 | Validation failed. The password does not meet the requirements of the password filter dynamic-link library (DLL). |
UnknownError | 5 | Validation failed. The password policy cannot be determined. Validate the password with your own routine. |
Remarks
When you attempt to create or change a password, the password is validated to the password policy requirements. This enumeration specifies the reason for the validation failure.