AD Accounts "Your password wil expire in XX days"

noah_swanson
New Contributor

Any way to change the preferences for the prompt "Your password will expire in XX days"?

Noah Swanson
Imaging Specialist
Enterprise Desktop Services
Phone: 309-765-3153
SwansonNoah at johndeere.com

5 REPLIES 5

Not applicable

sudo defaults write /Library/Preferences/com.apple.loginwindow PasswordExpirationDays NUMBER

I believe it only works on 10.6 up. You could also do this through Managed Preferences, which I'd recommend then if your companies policy changes, you can just make the change in one place.

Brendon Cunningham
Senior Technical Analyst
Desktop Engineering

jarednichols
Honored Contributor

Uh, don't you *want* to rely upon your domain for this?
---
Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436

noah_swanson
New Contributor

We get email notifications for this that start at 15 days. By default the mac is notifying at 30 days. People seem to get confused :)

ssmurphy
New Contributor III

We are using this method for 10.6.x based systems without issue.

Now that we are testing 10.7.x not so much. looks like its just being ignored.

Has anyone had any luck setting the password expired time in 10.7.x?

ClassyLee
New Contributor III

Hey Guys,

I ran into the same issue and was able to figure out why sudo defaults write /Library/Preferences/com.apple.loginwindow PasswordExpirationDays NUMBER wasn't working.

Apparently 10.7/10.8 require that you declare "NUMBER" as an integer when using defaults. So this is how it should look:

sudo defaults write /Library/Preferences/com.apple.loginwindow PasswordExpirationDays -int Number