+5 votes
276 views
How to disable password expiration in Office 365

in Office by (501k points)
reopened | 276 views

1 Answer

+3 votes
Best answer

image


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.

Frames.

by (3.1m points)
edited

Related questions

+5 votes
1 answer
+5 votes
1 answer
+4 votes
1 answer
asked Sep 18, 2020 in Office by backtothefuture (501k points) | 717 views
+5 votes
1 answer
asked Sep 23, 2019 in Office by backtothefuture (501k points) | 993 views
+3 votes
1 answer
asked Nov 16, 2019 in Office by backtothefuture (501k points) | 172 views
Sponsored articles cost $40 per post. You can contact us via Feedback
9,652 questions
9,773 answers
495 comments
3 users