Sometimes you don’t want a password of an Office 365 user to expire e.g. when you use it as a system account. You can’t do this using the Office 365 Admin center but it is quite easy using the Azure Active Directory Module for Windows PowerShell.
- Connect to Office 365 using your Office 365 global admin credentials by running the following cmdlet: Connect-MsolService
- Set the password of one user to never expire, run the following cmdlet: Set-MsolUser -UserPrincipalName <email@example.com> -PasswordNeverExpires $true
For an extensive walkthrough, check out the links below