You can set the password expiration policy of all users to never expire in Office 365 with the help of GUI or web interface. There is no way to set the password policy to never expire for a single user using web interface. You have to use PowerShell.

In this tutorial, I'll show you to set the password expiration policy to never expire in Office 365 with the help of PowerShell.

Prerequisites

Download and install the following modules.

  1. Microsoft Online Service Sign-in Assistant for IT Professionals RTW
  2. Windows Azure Active Directory Module for Windows PowerShell (64-bit vers

Setting Password Policy to Never Expire for All Users

$cred = Get-Credential
Connect-MSOLService -Credential $cred
Get-MSOLUser  | Set-MSOLUser –PasswordNeverExpires $true

Setting Password Policy to Never Expire for a Single User

Execute the following command to set the password expiration policy to never expire for a single user, just replace the alias parameter with the users' alias.

Set-MsolUser -UserPrincipalName alias -PasswordNeverExpires $true

 

How to Set the Password Expiration Policy to Never Expire in Office 365 with PowerShell

Leave a Reply

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

*

Ad #native_company# — #native_desc# #native_cta#