Office 365 Password Expiry

4747.PasswordExpired

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:

Download: http://www.microsoft.com/en-us/download/details.aspx?id=41950
Download: http://go.microsoft.com/fwlink/p/?linkid=236297

Launch “Windows Powershell” from the start menu

To connect to Exchange Online type and enter your email admin details:

Connect-MsolService

And then you can check an individual users expiry setting using this command:

Get-MSOLUser -UserPrincipalName test@test.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!

Leave a comment