Configure Office 365 Passwords to never expire

Office 365 LogoOne of the biggest complains we get from customers that are using Microsoft Office 365 is the mandatory password expiration. Microsoft has a KnowledgeBase article that explains with a few simple powershell commands how to disable this and set the passwords to never expire.

  1. Connect to the Windows Azure Active Directory Module for Windows PowerShell by using your company administrator credentials. For more help on this step, see this article on Technet. Note: This also used to be called Microsoft Online Services Module for Windows Powershell.
  2. Connect to your Office 365 service using the following cmdlet. Enter the Administrator username and password for the Office 365 service.
    connect-msolservice
  3. Run the following cmdlet to change all the user accounts passwords to never expire.
    Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true

This has worked very well for us and makes the customers very happy as the password expiration can be a hassle especially for small businesses.