How do I unlock Azure AD accounts via PowerShell

Cedric Abraham 0 Reputation points
2024-06-06T09:36:50.5566667+00:00

How do I unlock Azure AD accounts via PowerShell, when a users resets their local AD account, their AzureAD account gets locked, this is only happening to a few of our users

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,630 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Zunhui Han 640 Reputation points Microsoft Vendor
    2024-06-06T12:01:52.4366667+00:00

    Hi Cedric Abraham,

    Thank you for posting in Q&A forum.

    Unfortunately, there is no way to unlock a user account. You can check the following document https://learn.microsoft.com/en-us/azure/active-directory/active-directory-passwords-policy

    For details the how-to account lockout duration is calculated by default. If the user is aa synced user, synced from on-prem AD, then the unlock policy configured on on-prem AD would take effect.

    If smart lockout policies are configured, the user remains locked based on the lockout duration specified in https://learn.microsoft.com/en-us/azure/active-directory/connect/active-directory-aadconnect-pass-through-authentication-smart-lockout.

    I hope the information above is helpful.

    Best regards

    Zunhui

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments