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
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:
Ensure the Microsoft Online Services Sign-In Assistant for IT Professionals is installed.
Install the Azure AD module.
Launch the Azure Active Directory Module for Windows PowerShell shortcut.
Connect to an Azure Active Directory instance; for example:
$msolcred = get-credentialconnect-msolservice -credential $msolcred
You can use get-msoluser to view all users.
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