• Check if Password Sync is enabled in AAD


    Sometimes you will wonder why you cannot logon with the identities synced to Azure AD via AAD Connect.
    The most possible cause is the accounts' password haven't been synced to AAD successfully.

    You can follow this article to enable password sync, or you can trigger a full sync with all passwords.

    What's more, I write a simple powershell script (Github link) to check your current password sync configuration.

    # Check if AAD Sync Powershell is avaiable
    if ((Get-Module -ListAvailable adsync) -eq $null)
    {
        throw "AAD Sync Powershell Module cannot be found!"
    }
    
    Import-Module adsync
    
    $adConnector = Get-ADSyncConnector | where {$_.ConnectorTypeName -eq "AD"}
    $pwdSyncConfig = Get-ADSyncAADPasswordSyncConfiguration -SourceConnector $adConnector.Name
    
    Write-Output("********************")
    Write-Output ("Your Password Sync Configuration is.........")
    Write-Output("SourceConnector: {0}" -f $pwdSyncConfig.SourceConnector )
    Write-Output("TargetConnector: {0}" -f $pwdSyncConfig.TargetConnector )
    Write-Output("Enabled: {0}" -f $pwdSyncConfig.Enabled )

    Sample output:
    PS C:Usersadmin> C:UsersadminDesktopCheckPwdSyncConfig.ps1

    ********************
    Your Password Sync Configuration is.........
    SourceConnector: fansayent.com
    TargetConnector: fansayent.onmicrosoft.com - AAD
    Enabled: True
  • 相关阅读:
    继承
    面向对象_封装练习
    ajax分页与组合查询配合使用
    Linq的分页与组合查询的配合使用
    发送邮件和数据导出
    GridView的使用
    母版页的使用
    DIV+CSS命名规范
    Ajax基础
    jQuery动画效果
  • 原文地址:https://www.cnblogs.com/xingzhou/p/6038024.html
Copyright © 2020-2023  润新知