Disabling password expiry on Office 365

Microsoft’s Office 365 has a long list of mostly useful features.
There’s one feature though that many clients keep complaining about – the password expiry.
Anyone facing this problem surely looked everywhere on the portal, unfortunately Microsoft hasn’t included an option to disable that. At least not in a simple way.
This article describes the procedure how the password expiry can be disabled.

First you will need to download the Microsoft Online Services Module for PowerShell

Download 32-bit module

Download 64-bit module

Next open the PowerShell and connect to Office 365 using the command:

Connect-MsolService

In the logon dialog box enter your Office 365 administrator username and password.

To change a single user:

Set-MsolUser -UserPrincipalName <username> -PasswordNeverExpires $True

To change all users at once:

Get-MsolUser | Set-MsolUser -PasswordNeverExpires $True

To check if the changes have been successfull, you can run:

Get-MsolUser |fl

If the PasswordNeverExpires property is True, the change has been successful.

 

In category: Office 365
Tagged with: