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

in Office by (552k points)
reopened | 350 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.5m points)
edited

Related questions

+5 votes
1 answer
+5 votes
1 answer
+4 votes
1 answer
asked Sep 18, 2020 in Office by backtothefuture (552k points) | 818 views
+5 votes
1 answer
asked Sep 23, 2019 in Office by backtothefuture (552k points) | 1.1k views
+3 votes
1 answer
asked Apr 17, 2023 in Linux/Unix by backtothefuture (552k points) | 56 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users