3 thoughts on “Expired AD accounts remains active in Azure AD

  1. Hi Thanks for the great Article. Is there a reason why the expired property is not synced and whould it not be a solution to simply sync this to AAD?
    Or is this flag simply not (yet?) available in AAD?

    1. Hi.
      NP, the property is simply not available to sync…for some reason. If it was ‘yet’, then it would have been there a long time ago, at least thats what I think…so we work around it 🙂

  2. Thank you for this script! I added a line to move to another OU, which worked. I also wanted to add the user’s group memberships to the log file, but it didn’t work. I tried adding a second line unthe the other LogToFile command that says:
    LogToFile $LogPath (Get-ADPrincipalGroupMembership $user | Select name,groupscope)

    It only returned the pipe though. Am I just missing some quotes, or do you have any suggestions? Thanks!

Leave a comment