zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    电话聊天狂人
    PAT 1080. MOOC期终成绩
    PAT 1079. 延迟的回文数
    [转载]matlab 中序列求极值的方法
    [转载][转]Matlab-寻找峰值函数
    [转载]Kirchhoff Migration Impulse Response
    Envelope Extraction Using the Analytic Signal
    [转载]地震动的挑选
    C笔记
    Git常用有用命令
  • 原文地址:https://www.cnblogs.com/xingzhou/p/6038024.html
Copyright © 2011-2022 走看看