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 cmdlet
Set-MsolUser -UserPrincipalName user@contoso.com –PasswordNeverExpires $true
Tags: Cloud, Microsoft, Office 365, password, Password Policy, Policy, PowerShell, Set-MsolUser Last modified: October 14, 2011
Thank you so much for sharing this command. Its a pain changing password every three months.
Just for the users who don’t know how to connect to the powershell heres a guide:
http://help.outlook.com/en-US/140/cc952755.aspx
Is there a way to do this for all users?
Sure you could do a foreach loop with Powershell to get all users and set this for all useres… but please don’t do it :) this policy is there for a reason :)