Change Office 365 password expiration policy
The default password expiration policy of Office 365 is set to 90 days. That means that users have to change their password every 90 days. I think basicly this is a good and secure policy but maybe your company has other security policy or for some other reason you have to deactivate this. We can change this setting through PowerShell with the MicrosoftOnline PowerShell Module.
- First connect to Office 365 via PowerShell more on this here
- Now you can use the following cmdletPowerShell1Set-MsolUser -UserPrincipalName email@example.com –PasswordNeverExpires $true