password prompt

Configure Azure Active Directory Account Password to Not Expire

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. Ensure the Microsoft Online Services Sign-In Assistant for IT Professionals is installed.
  2. Install the Azure AD module.
  3. Launch the Azure Active Directory Module for Windows PowerShell shortcut.
  4. Connect to an Azure Active Directory instance; for example:
    $msolcred = get-credential
    connect-msolservice -credential $msolcred
  5. You can use get-msoluser to view all users.
  6. To set an account so its password doesn't expire, use:
    set-msoluser -userprincipalname <user, e.g. [email protected]> -passwordneverexpires $true
    get-msoluser | select UserPrincipalName, PasswordNeverExpires
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish