If you are using Office 365 with Outlook 2010, one of the problems you may face at a certain point is the password expiry.
There is no notification to user in outlook 2010 about the password expired, instead you will see a message saying “server is unavailable”. When you attempt to log into Outlook Web App, this is when you realise the password has expired. There is no way to change the password directly from outlook 2010.
This was a real problem for us as we now had to spend next few hours with users complaining and resetting passwords. Once the password was reset, the user has to first login to Outlook Web App and change the password. Doing this every 3 months when the password expire is ludicrous so I am going to show you how to set the passwords to never expire.
Firstly, Microsoft has now released an update to show notification in outlook. If you want the passwords to expire and your users are comfortable to change the passwords every so often then follow this link:
Office 365 Password Never Expire
We will be using the Microsoft Online Services Module for Power Shell, It can be downloaded from the following link:
Power Shell resembles a command prompt client and through the Microsoft Online Services Powershell Module you can access your Office 365 account and apply changes to it.
Once you have downloaded the module, please execute the following commands:
$Creds = Get-Credential
Connect-MsolService -Credential $Creds
Command to check the policy for specific user:
Get-MSOLUser -UserPrincipalName firstname.lastname@example.org | Select PasswordNeverExpires
Command to check the password never expire policies for all users:
Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires
To change the policy for one user, please use the following command:
Set-MsolUser -UserPrincipalName email@example.com -PasswordNeverExpires $true
Command to change the policy for all users:
Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true