Set-MsolUser -UserPrincipalName -PasswordNeverExpires $true Once you are successfully authenticated, enter the following command to set a user’s password to never expire:.Open up a PowerShell command session and type in “Connect-MsolService”.If you have not done this yet, you will need two pieces of software: the Microsoft Online Services Sign-In Assistant for IT Professionals RTW (yes, that’s the official name) and the Azure Active Directory Module for Windows PowerShell. ![]() First off, set yourself up to connect to the service through PowerShell remoting. Configuring Using PowerShellĪs always, good old PowerShell can come to the rescue. Although I am not entirely convinced that setting passwords to never expire is smart, if you choose secure passwords and use multifactor authentication, I do not think that disabling password expiration in Office 365 causes major difficulties. These users might not be used to the service’s default password expiration policy, especially if they are coming from in-house systems that had more lenient expiration requirements. One of the questions that we are most frequently asked is regarding users or administrators who subscribe to Office 365 but who are tired of receiving Office 365 password expiration notifications.
0 Comments
Leave a Reply. |