This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
networking:windows:active_directory:ad_password_policy [2020/09/25 09:40] gcooper |
networking:windows:active_directory:ad_password_policy [2020/09/28 10:51] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Active Directory Password Policy ====== | ====== Active Directory Password Policy ====== | ||
+ | |||
+ | ===== Check a User's Password and Policy ===== | ||
+ | |||
+ | Check when a user password expires: | ||
+ | |||
+ | < | ||
+ | net user USERNAME /domain | ||
+ | |||
+ | Get-ADUserResultantPasswordPolicy USERNAME | ||
+ | </ | ||
===== Default Domain Password Policy ===== | ===== Default Domain Password Policy ===== | ||
Line 25: | Line 35: | ||
</ | </ | ||
- | For **per-user** policies, load this function: | + | ==== Show Per User Policy ==== |
+ | |||
+ | < | ||
+ | Get-ADUserResultantPasswordPolicy username | ||
+ | </ | ||
+ | |||
+ | Or to show all users: | ||
< | < |