+5 votes
How to disable password expiration in Office 365

in Office by (539k points)
reopened | 306 views

1 Answer

+3 votes
Best answer


One of the main problems I encountered when using Office 365 was the expiration of passwords, especially since having the account set up on several devices (mobile, ipad, two PC's, etc.) the problem of having to change it is that I blocked other devices and had to change it in all. Fortunately it is possible to disable this expiration of passwords, although it is recommended that they expire for security, may arise in some accounts that you prefer to disable it.

To do this follow the steps below, which are for a systems administrator.
  • Log on to the computer with Windows 7, Windows 8 or Windows 2008/2012 R2 that have the version 3.5.1 (or sup.) Of the .NET Framework , the latest version of Microsoft Online Services Sign-In Assistant , which if not you have installed you can install this Office 365 client when entering the account by web, click on "Downloads" on the right and on Install and configure your Office desktop applications . " and we will also need to have installed Microsoft Online Services Module for PowerShell , which is the Power Shell or Office 365 command window, you have 32 and 64 bit version. Download then yours and install it.
Power Shell Office365 32 bits
Power Shell Office365 64 bits
  • Run the PowerShell that you have installed and you have to write these commands:
For only one user:

 Set-MsOlUser -UserPrincipalName UserID -PasswordNeverExpires $ True 

To all users:

 $ cred = Get-Credential [/ size] connect-MSOLService -credential $ cred [/ size] Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $ true 

I hope you have been helpful.


by (3.4m points)

Related questions

+5 votes
1 answer
+5 votes
1 answer
+4 votes
1 answer
asked Sep 18, 2020 in Office by backtothefuture (539k points) | 764 views
+5 votes
1 answer
asked Sep 23, 2019 in Office by backtothefuture (539k points) | 1k views
+3 votes
1 answer
asked Apr 17 in Linux/Unix by backtothefuture (539k points) | 14 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,408 questions
10,537 answers
3 users