Prevent Password Expiration for an Office 365 User Account

Share on facebook
Share on twitter
Share on linkedin

If you would like to override the password expiration policy for specific Office 365 accounts, follow these directions:

  1. Download and install Microsoft Online Services Sign-In Assistant for IT Professionals
  2. Download and install Windows Azure Active Directory Module for Windows PowerShell
  3. Open a Windows Azure PowerShell session using Administrator rights
  4. Type: $LiveCred = Get-Credential
  5. Enter your global admin credentials
  6. Type: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic –AllowRedirection
  7. Type: Import-PSSession $Session
  8. Type: Connect-MsolService
  9. Reenter your global admin credentials
  10. Type: Set-MsolUser –userprincipalname <account name> -PasswordNeverExpires $true

The password for the specific user account will no longer expire.

More to explore