Can anyone tell me if I can deny the permission to set a password to never expire? I want to prevent certain people from changing the "password never expires" account setting.
No, they are account admins who only create accounts for their OU. We do not allow user accounts with passwords that do not expire, but I am finding some here and there that are being set that way.
dsquery user | dsmod user -pwdneverexpires no
You can refine the OU's etc that this command will work on if required by adding an OU's UPN (User principal name). eg
dsquery user CN=users,DC=mydomain,DC=com | dsmod user -pwdneverexpires no
Force a domain password policy to require users to reset the password every XX days.
Do the same things For "Domain Security Policy" also
1. Administrative Tools
2. Domain Security Policy
3. Account Policies
4. Password Policy
5. Maximum password age
5. Check Define this policy setting And "xx" days.
Joseph L. Poandl
MCSE 2003/ MCITP - Enterprise
If your company is in need of experts to examine technical problems/solutions, please contact
Excuse my ignorance, but I don't see how this allows me to deny my account admins the ability to set the "passwords never expire" option. I need them to create and manage accounts in their OU, but not be able to set passwords to never expire.
Our domain security policy already forces passwords to be changed every xx days and that does not appear to affect their ability to set the passwords to never expire.
I am still puzzled that there is not a documented way to deny just that ability.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.