≡ Menu

Configure Office365 Passwords to Not Expire

**UPDATED 11/13/2013 to reflect usage of Windows Azure Active Directory Module for Windows PowerShell.

  1. Download & install the Microsoft Online Services Sign-In Assistant for IT Professionals BETA
  2. Download & install the Windows Azure Active Directory Module for Windows PowerShell
    (32-Bit | 64-Bit)
  3. Launch PowerShell and ensure we have loaded the Office365 Module
    Import-Module msonline
  4. Connect to Office365 using Administrative Credentials
    $cred = Get-Credential
    Connect-MsolService -cred $cred
  5. Set all user’s passwords to never expire
    Get-MsolUser | Set-MsolUser -PasswordNeverExpires $True

    To set a single user’s password to not expire

    Set-MsolUser -UserPrincipalName user@domain.tld -PasswordNeverExpires $false
  6. Confirm users passwords are set to not expire (Optional)
    Get-MsolUser | fl UserPrincipalName,PasswordNeverExpires

Thanks to Jan Egil for her great blog post which helped me figure this out and subsequently a TechNet article for the 11/13/2013 update.

{ 0 comments… add one }

Leave a Comment