LocalAccountsPolicyInfo

The Policy.Info structure defines the global password policy.


Properties

integer as int64
max_days Optional

Maximum number of days a password may be used. If the password is older than this, a password change will be forced. If unset then the restriction will be ignored.


integer as int64
min_days Optional

Minimum number of days allowed between password changes. Any password changes attempted sooner than this will be rejected. If unset then the restriction will be ignored.


integer as int64
warn_days Optional

Number of days warning given before a password expires. A zero means warning is given only upon the day of expiration. If unset then no warning will be provided.

JSON Example

{
    "max_days": 0,
    "min_days": 0,
    "warn_days": 0
}
Parameter To

Set Policy
Returned By

Get Policy
Feedback

Was this page helpful?