Configure Azure Active Directory Account Password to Not Expire

Set a non-expiring password for an Azure Active Directory account.

John Savill

October 27, 2014

1 Min Read
password prompt

Q: How can I set an Azure Active Directory password to not expire?

A: To set an Azure Active Directory account to have a non-expiring password, perform the following steps:

  1. Install the Azure AD module.

  2. Launch the Azure Active Directory Module for Windows PowerShell shortcut.

  3. Connect to an Azure Active Directory instance; for example:

    $msolcred = get-credentialconnect-msolservice -credential $msolcred
  4. You can use get-msoluser to view all users.

  5. To set an account so its password doesn't expire, use:

    set-msoluser -userprincipalname  -passwordneverexpires $trueget-msoluser | select UserPrincipalName, PasswordNeverExpires

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like