Recently I’ve been getting a lot of users coming to me with forgotten passwords, I thought this was strange because most of them have been using the same passwords for years. I found out that they were actually all asked to change passwords last year and a fair amount had forgotten the details since. This is annoying as I believe passwords should be secure over time, It feels a lot more insecure when people are forced to change them and keep forgetting them all the time.
So I went looking for a way to set passwords to never expire on Exchange online. Here’s how to do it:
Launch “Windows Powershell” from the start menu
To connect to Exchange Online type and enter your email admin details:
And then you can check an individual users expiry setting using this command:
Get-MSOLUser -UserPrincipalName email@example.com | Select PasswordNeverExpires
And set individual user accounts to never expire with this command
Set-MsolUser -UserPrincipalName <user ID> -PasswordNeverExpires $true
Or set the entire organization with this command
Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true
So there you have it, an easy way to change the password expiration policy on Office 365!