One 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.
- 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.
- Connect to your Office 365 service using the following cmdlet. Enter the Administrator username and password for the Office 365 service.
[highlight]connect-msolservice[/highlight] - 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.
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.