Office365 and outlook 2010 password never expire

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:

http://blogs.technet.com/b/exchange/archive/2012/09/11/office-365-password-expiration-notifications-in-outlook.aspx

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:

http://onlinehelp.microsoft.com/en-us/office365-enterprises/hh124998.aspx

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:

Import-Module MSOnline
$Creds = Get-Credential
Connect-MsolService -Credential $Creds

Command to check the policy for specific user:

Get-MSOLUser -UserPrincipalName john@contoso.com | 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 john@contoso.com -PasswordNeverExpires $true

Command to change the policy for all users:

Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true 

Leave a Reply

Your email address will not be published. Required fields are marked *