Azure AD Set password to never expire

Check user account or set password never expires for a cloud managed user account.

This is not possible for on-premises synced accounts. In this case you control the setting in your local active directory.

Connect to Azure AD.

Start powershell and type Connect-AzureAD

Check expiration policies for a single user:

Get-AzureADUser -ObjectId UPN | Select-Object UserPrincipalName, @{N="PasswordNeverExpires";E={$_.PasswordPolicies -contains "DisablePasswordExpiration"}
}

Set password to never expire for a single user:

Set-AzureADUser -ObjectId [email protected]  -PasswordPolicies DisablePasswordExpiration

Close you AAD powershell session by typing Disconnect-AzureAD

Leave a Reply

Your email address will not be published.