Set Office 365 Passwords to Never Expire

Print Friendly, PDF & Email

In BPOS, users would at least get a warning when they logged in. In Office 365, we’re seeing passwords expire and nobody knows why their Outlook or Lync suddenly stopped working. You can always have someone go to Portal.Microsoftonline.com and reset their password – it’s rather simple. But even less of a headache? Make it so that their passwords don’t expire. Follow the step by step below:

Download & install the cmdlet programs (you may
already have these and be using them).

  • Microsoft Online Services Sign-In Assistant (IDCRL7) (32 or
    64-bit).
  • Microsoft Online Services Module for Windows PowerShell (32 or 64-bit).

Now launch the Microsoft Online Services Module for Windows PowerShell
from your desktop or start menu and enter each of the following commands one at a time (each bullet
point is one command NOTE that some commands may span more than one line due to web formatting – look for the actual BULLET POINTS to show you the beginning of each new command and copy it entirely).

  • $LiveCred = Get-Credential
  • $Session = New-PSSession -ConfigurationName Microsoft.Exchange
    -ConnectionUri https://ps.outlook.com/powershell/ -Credential
    $LiveCred -Authentication Basic -AllowRedirection
    • ENTER YOUR ADMIN USER CREDENTIALS (admin@xyz.microsoftonline.com &
      a password).
  • Import-PSSession $Session
  • Connect-MSOLService
    • ENTER YOUR ADMIN CREDENTIALS AGAIN
  • Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true

And now you’re all set! Passwords won’t expire any more and passwords which have expired already will begin working again within minutes.