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.
  3. Run the following cmdlet to change all the user accounts passwords to never expire.
    [highlight]Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true[/highlight]

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.

Join the Conversation

1 Comment

  1. Here is a follow-up command you can use, to see if ran the command correctly: Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires This command lists all of the email addresses, and if they are set to never expire.

Leave a comment

Your email address will not be published. Required fields are marked *